mirror of
https://github.com/Ranchero-Software/NetNewsWire
synced 2025-08-12 06:26:36 +00:00
Add and remove buttons instead of hiding them since our hiding trick doesn't work on iOS 14
This commit is contained in:
@@ -28,19 +28,4 @@ public extension UIBarButtonItem {
|
||||
}
|
||||
}
|
||||
|
||||
var isHidden: Bool {
|
||||
get {
|
||||
return tintColor == UIColor.clear
|
||||
}
|
||||
set(hide) {
|
||||
if hide {
|
||||
isEnabled = false
|
||||
tintColor = UIColor.clear
|
||||
} else {
|
||||
isEnabled = true
|
||||
tintColor = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user