Created
July 31, 2022 08:15
-
-
Save aryasurya21/c6e6f14922aba72351a6503bf5fd6e07 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
override func viewDidLoad() { | |
super.viewDidLoad() | |
title = "Catalog Page" | |
let bundle = Bundle(identifier: "com.aryasurya.Shared") | |
collectionView.register(UINib(nibName: "ProductCollectionViewCell", bundle: bundle), forCellWithReuseIdentifier: "ProductCollectionViewCell") | |
collectionView.register(UINib(nibName: "InspirationCollectionViewCell", bundle: bundle), forCellWithReuseIdentifier: "InspirationCollectionViewCell") | |
collectionView.dataSource = self | |
collectionView.delegate = self | |
bindViewModel() | |
viewModel.onDidLoad() | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment