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 (nonatomic, readonly, getter=isMinimizable) 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 (nonatomic, getter=isMinimized) BOOL minimized;
Swift
var isMinimized: Bool { get set }
-
Optional delegate property used to interact with minimized views.
Declaration
Objective-C
@property (nonatomic, weak, 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) async
Parameters
minimized
Boolean indicating if the view should be minimized or not.
animated
Indicates whether or not the minimization should occur with an animation.
completion
Optional completion block to be called when the operation has completed.