alexaubry / alexaubry/BulletinBoard
populate collectionView based on data from TextFieldBulletinPage
- Dominant language
- Swift
- Stars
- 5.3k
- Forks
- 301
- PR merge metrics
- No merged PRs in 30d
Description
Hi, was wondering how one would go about populating a collection view with cells using the text from a TextFieldBulletinPage: I've made a TextFieldBulletinPage with a static func where I try and do this. I tried treating it as a alert. So far, I've been able to save the data from the custom TextFieldBulletinPage to Firebase, no luck with treating the bulletin as an alertview. pls pls any hints?
Here is my code
```
static func makeblockTextFieldPage() -> TextFieldBulletinPage {
let page = TextFieldBulletinPage(title: "block card")
page.isDismissable = true
page.image = UIImage(named: "block")
page.descriptionText = "tttttttttt."
page.actionButtonTitle = "Make my block"
page.textInputHandler = { (item, text) in
print("Text: \(text ?? "nil")")
let donePage = self.makeCompletionPage()
item.manager?.push(item: donePage)
```
Contributor guide
Assessment
This issue has not been assessed yet.