Cards icon indicating copy to clipboard operation
Cards copied to clipboard

CardHighlight itemSubtitle not loading immediately

Open arishanapalli opened this issue 4 years ago • 1 comments

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!

arishanapalli avatar Aug 02 '19 19:08 arishanapalli

Could you provide an example project ?

PaoloCuscela avatar Sep 23 '19 11:09 PaoloCuscela