SCSMinimizable
@protocol SCSMinimizable <NSObject>
Protocol used by UI components that are capable of being minimized.
-
Indicates whether or not the receiver is capable of being minimized.
Declaration
Objective-C
@property (readonly, getter=isMinimizable, assign, nonatomic) BOOL minimizable;Swift
var isMinimizable: Bool { get } -
Property to control whether or not the window is minimized.
See
setMinimized:animated:completion:Declaration
Objective-C
@property (getter=isMinimized, assign, readwrite, nonatomic) BOOL minimized;Swift
var isMinimized: Bool { get set } -
Optional delegate property used to interact with minimized views.
Declaration
Objective-C
@property (readwrite, nonatomic, nullable) NSObject<SCSMinimizableDelegate> *minimizationDelegate;Swift
weak var minimizationDelegate: SCSMinimizableDelegate? { get set } -
Animated setter for controlling the window minimification.
Declaration
Objective-C
- (void)setMinimized:(BOOL)minimized animated:(BOOL)animated completion:(nullable void (^)(void))completion;Swift
func setMinimized(_ minimized: Bool, animated: Bool, completion: (() -> Void)? = nil)Parameters
minimizedBoolean indicating if the view should be minimized or not.
animatedIndicates whether or not the minimization should occur with an animation.
completionOptional completion block to be called when the operation has completed.
Install in Dash
SCSMinimizable Protocol Reference