Last active
February 26, 2020 02:15
-
-
Save aheze/fb850708e0d70f935f2da531df954f2e 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
class MyViewController : UIViewController, UICollectionViewDelegate, UICollectionViewDelegateFlowLayout, UICollectionViewDataSource { | |
///....... | |
override func loadView() { | |
let view = UIView() | |
view.backgroundColor = .white | |
///ADD this stuff: | |
for (index, singleLetter) in baseCollectionViewArray.enumerated() { | |
let newComponent = AlphabetComponent() | |
newComponent.labelName = singleLetter | |
newComponent.orderIdentifier = index | |
newBaseCollectionViewArray.append(newComponent) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment