Appboy / appboy-ios-sdk

Public repo for the Braze iOS SDK
https://www.braze.com
Other
168 stars 140 forks source link

Can you change handleCardClick to delegate protocol in swift ? #209

Closed thepinyo closed 4 years ago

thepinyo commented 4 years ago

Can you change handleCardClick to delegate protocol in swift? and please update your document and example project more. I want to add subview to my view controller and custom handle card click event and custom cellForRow delegate.

please help me because we have plan to release app in this week (15 Nov 2019).

thepinyo commented 4 years ago

i want to this ABKContentCardsTableViewController. and how to access cards list?

hokstuff commented 4 years ago

Hi @thepinyo,

Regarding your second question, in our latest release 3.21.0 we have added cards as a public property of ABKContentCardsTableViewController. You can view it here.

For your initial question - thank you for the feedback. We are looking into adding more functionality with a card click delegate, but we currently do not have a timeline for it yet.

Thanks!

Best, Daniel

thepinyo commented 4 years ago

@hokstuff do you have example project for my use case in swift? currently i try to handle click but it not work.

hokstuff commented 4 years ago

Hi @thepinyo,

Right now the only way to do custom handling with card clicks are to create a subclass for ABKContentCardsTableViewController and then override the handleCardClick method. We don't have an example in Swift, but we have an example of that in Objective-C here.

Let me know if you have any other questions.

Best, Daniel

hokstuff commented 4 years ago

We are currently tracking this feature internally and have added it to our roadmap, so I will close out this ticket. Thanks!