alexaubry/BulletinBoard

Swift: Buttons not working

オープン

#192 opened on 2020/10/07

 (9 件のコメント) (0 件のリアクション) (0 人の担当者)Swift (302 件のフォーク)batch import
bughelp wantedpending-feedback

Repository metrics

Stars
 (5,339 個のスター)
PR merge metrics
 (30d に merged PR はありません)

説明

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)
        }()
     

`

コントリビューターガイド