intuit / CardParts

A reactive, card-based UI framework built on UIKit for iOS developers.
Other
2.52k stars 224 forks source link

Clickable Cards #35

Closed willysharp5 closed 6 years ago

willysharp5 commented 6 years ago

https://github.com/intuit/CardParts#clickable-cards

Could you elaborate on how to use this. where do you add this new code for clickable for the various states

import Foundation
import CardParts

class CardPartTextViewCardController: CardPartsViewController {

    let cardPartTextView = CardPartTextView(type: .normal)

    override func viewDidLoad() {
        super.viewDidLoad()

        cardPartTextView.text = "This is a CardPartTextView"

        setupCardParts([cardPartTextView])
    }

}
sasquatchgit commented 5 years ago

Hi! Could you figure out how to do this? I am trying to get callback on clicks and not sure how to do it.