Add and remove buttons instead of hiding them since our hiding trick doesn't work on iOS 14

This commit is contained in:
Maurice Parker
2020-08-07 15:20:20 -05:00
parent a7a17e3937
commit a63466f7b3
3 changed files with 44 additions and 58 deletions

View File

@@ -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
}
}
}
}