We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
override func viewWillAppear(_ animated: Bool) { if UserDefaul.getBool(key: UserDefaultKeys.heightSelected) == true { let height = UserDefaul.getInteger(key: UserDefaultKeys.heightCm) heighPicker.setDefaultHeight(CGFloat(height), unit: .CM) // heighPicker.reloadInputViews() self.contBtnEnabled(btn: self.contBtn) }else { heighPicker.reloadInputViews() self.contBtnDisabled(btn: self.contBtn) } }
func setupTYHeightPicker() { heighPicker = TYHeightPicker() heighPicker.translatesAutoresizingMaskIntoConstraints = false heighPicker.delegate = self self.heightView.addSubview(heighPicker) heighPicker.leftAnchor.constraint(equalTo: self.heightView.leftAnchor).isActive = true heighPicker.rightAnchor.constraint(equalTo: self.heightView.rightAnchor).isActive = true heighPicker.centerYAnchor.constraint(equalTo: self.heightView.centerYAnchor).isActive = true heighPicker.heightAnchor.constraint(equalToConstant: 145).isActive = true }
The text was updated successfully, but these errors were encountered:
DispatchQueue just solved my problem
DispatchQueue.main.async { heighPicker.setDefaultHeight(170, unit: .CM) }
Sorry, something went wrong.
No branches or pull requests
override func viewWillAppear(_ animated: Bool) {
if UserDefaul.getBool(key: UserDefaultKeys.heightSelected) == true {
let height = UserDefaul.getInteger(key: UserDefaultKeys.heightCm)
heighPicker.setDefaultHeight(CGFloat(height), unit: .CM)
// heighPicker.reloadInputViews()
self.contBtnEnabled(btn: self.contBtn)
}else {
heighPicker.reloadInputViews()
self.contBtnDisabled(btn: self.contBtn)
}
}
The text was updated successfully, but these errors were encountered: