FUITintableDrawingView
open class FUITintableDrawingView<T> : FUIBaseDrawingView, FUIStyleByTintAttributes, FUITintAttributesProvider, FUIAttributesProvider, FUIEnabledComponent where T : Defaultable, T : Enableable, T : Hashable
Undocumented
-
Undocumented
Declaration
Swift
open func tintAttributes(for property: FUIPropertyRef, state: TintState) -> [NSAttributedStringKey : Any]
-
Undocumented
Declaration
Swift
public typealias TintState = T
-
Declaration
Swift
public var tintAttributes: [FUIPropertyRef : [T : [NSAttributedStringKey : Any]]] { get set }
-
Undocumented
Declaration
Swift
open var tintState: T { get set }
-
Aggregate state property, which combines the developer-set value with the current state of the relevant containing views. This accounts for cases where the view should be disabled as a result of a property on a parent view. For example, the
FUITintableDrawingView
may be a subview of aUICollectionViewCell
; collection view cell selection is managed by theallowsSelection
andallowsMultipleSelection
properties in theUICollectionView
. The result of this property is: if the containing view is enabled, or there is no container, return: this view’sisEnabled' value. If the containing view is not enabled, return
false`.Declaration
Swift
open var isEnabled: Bool { get set }
-
Declaration
Swift
open override func prepareForReuse()
-
Undocumented
Declaration
Swift
public func cacheTintState()
-
Undocumented
Declaration
Swift
public func restoreTintStateFromCache()