SCSMinimizableDelegate
@protocol SCSMinimizableDelegate <NSObject>
Delegate protocol used to interact with, and be informed of changes to, minimizable controllers.
-
Overrides the destination point that the minimization will animate to.
The point is a floating point value between 0.0 and 1.0 to indicate a relative position across the screen. If any dimension in the point is larger than 1.0, it will be assumed to be an absolute position on the screen, and its value will be converted. If you want to accept the previous position the attachment was minimized to, or you want to accept the system default, simply return the supplied
defaultPoint
.Declaration
Objective-C
- (CGPoint)minimizedController: (nonnull UIViewController<SCSMinimizable> *)minimized destinationPoint:(CGPoint)defaultPoint;
Swift
optional func minimizedController(_ minimized: Any!, destinationPoint defaultPoint: Any!) -> Any!
Parameters
minimized
The minimized controller.
defaultPoint
The default point that would be used.
Return Value
New point to serve as the initial destination point.
-
Informs the receiver when the minimized view is moved to a new point.
Declaration
Objective-C
- (void)minimizedController: (nonnull UIViewController<SCSMinimizable> *)minimized movedToPoint:(CGPoint)point;
Swift
optional func minimizedController(_ minimized: Any!, movedToPoint point: Any!)
Parameters
minimized
The minimized controller.
point
The new center point for the attachment.
-
Notifies the receiver when the minimized view will be minimized.
Declaration
Objective-C
- (void)minimizedController: (nonnull UIViewController<SCSMinimizable> *)minimized controllerWillMinimize:(BOOL)animated;
Swift
optional func minimizedController(_ minimized: Any!, controllerWillMinimize animated: Bool)
Parameters
minimized
The minimized controller.
animated
Whether or not the minimization will be animated.
-
Notifies the receiver when the window minimization is complete.
Declaration
Objective-C
- (void)minimizedController: (nonnull UIViewController<SCSMinimizable> *)minimized controllerDidMinimize:(BOOL)animated;
Swift
optional func minimizedController(_ minimized: Any!, controllerDidMinimize animated: Bool)
Parameters
minimized
The minimized controller.
animated
Whether or not the minimization was animated.
-
Notifies the receiver when the window will be maximized.
Declaration
Objective-C
- (void)minimizedController: (nonnull UIViewController<SCSMinimizable> *)minimized controllerWillMaximize:(BOOL)animated;
Swift
optional func minimizedController(_ minimized: Any!, controllerWillMaximize animated: Bool)
Parameters
minimized
The minimized controller.
animated
Whether or not the maximization will be animated.
-
Notifies the receiver when the window was maximized.
Declaration
Objective-C
- (void)minimizedController: (nonnull UIViewController<SCSMinimizable> *)minimized controllerDidMaximize:(BOOL)animated;
Swift
optional func minimizedController(_ minimized: Any!, controllerDidMaximize animated: Bool)
Parameters
minimized
The minimized controller.
animated
Whether or not the maximization was animated.