Open CainLuo opened 3 years ago
// MARK: UIBarButtonItem
@IBDesignable public extension UIViewController {
@IBInspectable var localizeKey: String {
set {
DispatchQueue.main.async {
self.title = newValue.localized()
}
}
get {
return self.localizeKey.localized()
}
}
}
@marmelroy
Part of the UI control localizeKey is missing, the code is above, can we add it in the next version?
And is there something unreasonable about the localizeKey setting of the UIButton? For example, I need to set the localizeKey for UIButton's highlighted state, which is not provided.