Commit 39dd242d by Orkhan Alikhanov

Fixed disabling theming was not working for subclasses

parent 5bee9dc7
......@@ -190,7 +190,7 @@ public extension Themeable where Self: NSObject {
/// A boolean indicating if theming is enabled.
var isThemingEnabled: Bool {
get {
return Self.isThemingEnabled && AssociatedObject.get(base: self, key: &IsThemingEnabledKey) {
return type(of: self).isThemingEnabled && AssociatedObject.get(base: self, key: &IsThemingEnabledKey) {
true
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment