Skip to content
This repository was archived by the owner on Nov 13, 2017. It is now read-only.

Commit 45e6e43

Browse files
author
Stefano Zanetti
committed
CurrentViewController as public readonly property
1 parent 8aab5ed commit 45e6e43

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

Pod/Classes/MBT3DGridViewController.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ typedef NS_ENUM(NSInteger, MBT3DGridTransitionDirection) {
4141

4242
@interface MBT3DGridViewController : UIViewController
4343

44+
@property (strong, nonatomic, readonly) UIViewController *currentContentViewController;
45+
4446
@property (weak, nonatomic) id <MBT3DGridViewControllerDataSource> dataSource;
4547

4648
@property (weak, nonatomic) id <MBT3DGridViewControllerDelegate> delegate;

Pod/Classes/MBT3DGridViewController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ @interface MBT3DGridViewController () <UIViewControllerContextTransitioning>
1515

1616
@property (assign, nonatomic, readwrite) MBT3DGridTransitionDirection transitionDirection;
1717

18-
@property (strong, nonatomic) UIViewController *currentContentViewController;
18+
@property (strong, nonatomic, readwrite) UIViewController *currentContentViewController;
1919
@property (strong, nonatomic) UIViewController *nextContentViewController;
2020

2121
@property (assign, nonatomic) BOOL transitionCanceled;

0 commit comments

Comments
 (0)