@@ -257,6 +257,7 @@ FOUNDATION_EXPORT NSString* NSStringFromIIViewDeckSide(IIViewDeckSide side);
257
257
controller that the view deck controller is currently showing.
258
258
259
259
@see openSide:animated:
260
+ @see openSide:animated:completion:
260
261
*/
261
262
@property (nonatomic ) IIViewDeckSide openSide;
262
263
@@ -271,23 +272,59 @@ FOUNDATION_EXPORT NSString* NSStringFromIIViewDeckSide(IIViewDeckSide side);
271
272
dismissing the open side first.
272
273
273
274
@see closeSide:
275
+ @see closeSide:animated:completion:
274
276
275
277
@param side The side you want to open.
276
278
@param animated `YES` if you want to animate the transition, `NO` otherwise.
277
279
*/
278
280
- (void )openSide : (IIViewDeckSide)side animated : (BOOL )animated ;
279
281
282
+
283
+ /* *
284
+ Opens the passed in side.
285
+
286
+ Opening a side that is already open does nothing.
287
+
288
+ @note You can only switch between no view controller (`IIViewDeckSideNone`) or
289
+ either the left (`IIViewDeckSideLeft`) or right (`IIViewDeckSideRight`)
290
+ view controller. You can not switch directly from left to right without
291
+ dismissing the open side first.
292
+
293
+ @see closeSide:
294
+ @see closeSide:animated:
295
+
296
+ @param side The side you want to open.
297
+ @param animated `YES` if you want to animate the transition, `NO` otherwise.
298
+ @param completion Completion block that will be called when the animation completed
299
+ */
300
+ - (void )openSide : (IIViewDeckSide)side animated : (BOOL )animated completion : (nullable void (^)(BOOL cancelled))completion;
301
+
302
+
280
303
/* *
281
304
Closes the currently open side.
282
305
283
306
Closing a side when no side is open does nothing.
284
307
308
+ @see closeSide:animated:completion:
285
309
@see openSide:animated:
286
310
287
311
@param animated `YES` if you want to animate the transition, `NO` otherwise.
288
312
*/
289
313
- (void )closeSide : (BOOL )animated ;
290
314
315
+ /* *
316
+ Closes the currently open side.
317
+
318
+ Closing a side when no side is open does nothing.
319
+
320
+ @see closeSide:animated:
321
+ @see openSide:animated:
322
+
323
+ @param animated `YES` if you want to animate the transition, `NO` otherwise.
324
+ @param completion Completion block that will be called when the animation completed
325
+ */
326
+ - (void )closeSide : (BOOL )animated completion : (nullable void (^)(BOOL cancelled))completion;
327
+
291
328
292
329
// / @name Customizing Transitions
293
330
0 commit comments