Skip to content

Instantly share code, notes, and snippets.

@aryasurya21
Created July 31, 2022 08:15
Show Gist options
  • Save aryasurya21/c6e6f14922aba72351a6503bf5fd6e07 to your computer and use it in GitHub Desktop.
Save aryasurya21/c6e6f14922aba72351a6503bf5fd6e07 to your computer and use it in GitHub Desktop.
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