alexaubry/BulletinBoard

Swift: Buttons not working

Open

#192 opened on Oct 7, 2020

View on GitHub
 (9 comments) (0 reactions) (0 assignees)Swift (4,908 stars) (271 forks)batch import
bughelp wantedpending-feedback

Description

Hi everybody!

I try to add an action handler and alternative handler. It does not work ... Can anybody help me?

let bulletinManager: BLTNItemManager = { let rootItem = BLTNPageItem(title: "Welcome")

        rootItem.descriptionText = "Would you like to add Sample Data to your database?"
        rootItem.actionButtonTitle = "Add"
        rootItem.alternativeButtonTitle = "Not now"
        rootItem.isDismissable = false
        
        rootItem.actionHandler = { (item: BLTNActionItem) in
            item.actionButtonTitle = "tapped"
        }
        
        
        
        rootItem.alternativeHandler = { (item: BLTNActionItem) in
            print("Alternative button tapped")
        }
        
            return BLTNItemManager(rootItem: rootItem)
        }()
     

`

Contributor guide