You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 5, 2020. It is now read-only.
Not sure if I'm missing something but I think that UITabBars don't have a mixedBarStyle property. The only way I can get this to work is by adding the following code (taken from NightNight's UINavigationBar extension) to the Classes/UIKit/UITabBar+Mixed.swift file.
public extension UITabBar {
fileprivate struct AssociatedKeys {
static var mixedBarStyleKey = "mixedBarStyleKey"
}
public var mixedBarStyle: MixedBarStyle? {
get {
return objc_getAssociatedObject(self, &AssociatedKeys.mixedBarStyleKey) as? MixedBarStyle
}
set {
objc_setAssociatedObject(self, &AssociatedKeys.mixedBarStyleKey, newValue, .OBJC_ASSOCIATION_RETAIN_NONATOMIC)
addNightObserver(#selector(_updateBarStyle))
}
}
func _updateBarStyle() {
if let mixedBarStyle = mixedBarStyle {
barStyle = mixedBarStyle.unfold()
}
}
}
Is there another way of giving a MixedBarStyle to a UITabBar or was it accidentally left out of the code?
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Not sure if I'm missing something but I think that UITabBars don't have a mixedBarStyle property. The only way I can get this to work is by adding the following code (taken from NightNight's UINavigationBar extension) to the Classes/UIKit/UITabBar+Mixed.swift file.
Is there another way of giving a MixedBarStyle to a UITabBar or was it accidentally left out of the code?
The text was updated successfully, but these errors were encountered: