Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

CardHighlight itemSubtitle not loading immediately #119

Open
arishanapalli opened this issue Aug 2, 2019 · 1 comment
Open

CardHighlight itemSubtitle not loading immediately #119

arishanapalli opened this issue Aug 2, 2019 · 1 comment

Comments

@arishanapalli
Copy link

arishanapalli commented Aug 2, 2019

CardHighlight set value subTitle is not immediately loading.
when switching one view to another view its loading.

let titleValue: String
let subTitleValue:String

    override func viewWillAppear(_ animated: Bool) {
        super.viewWillAppear(animated)
       self.cardSubTitle()
    }

fileprivate func cardSubTitle(){      
 cardHighlight.title = "Title:  \(titleValue!)"
 cardHighlight.itemSubtitle = "subTitleValue:  \(subTitleValue!)"
 cardHighlight.reloadInputViews()
}

    @IBAction func setSubTitleValue(_ sender: Any) {
        title = "This is Title"
        subTitleValue = "This is subTitle"
        self.cardSubTitle()
  }

Your inputs really useful please let me know!

@PaoloCuscela
Copy link
Owner

Could you provide an example project ?

# for free to join this conversation on GitHub. Already have an account? # to comment
Projects
None yet
Development

No branches or pull requests

2 participants