diff --git a/Source/ios/Storyboard/TyphoonStoryboard.h b/Source/ios/Storyboard/TyphoonStoryboard.h index a6555e9f5..8c849f137 100644 --- a/Source/ios/Storyboard/TyphoonStoryboard.h +++ b/Source/ios/Storyboard/TyphoonStoryboard.h @@ -33,11 +33,11 @@ */ @interface TyphoonStoryboard : UIStoryboard -@property(nonatomic, strong) TyphoonComponentFactory *factory; +@property(nonatomic, strong) id factory; + (TyphoonStoryboard *)storyboardWithName:(NSString *)name bundle:(NSBundle *)storyboardBundleOrNil; -+ (TyphoonStoryboard *)storyboardWithName:(NSString *)name factory:(TyphoonComponentFactory *)factory bundle:(NSBundle *)bundleOrNil; ++ (TyphoonStoryboard *)storyboardWithName:(NSString *)name factory:(id)factory bundle:(NSBundle *)bundleOrNil; @end diff --git a/Source/ios/Storyboard/TyphoonStoryboard.m b/Source/ios/Storyboard/TyphoonStoryboard.m index cc7802bcb..0c19aabfb 100644 --- a/Source/ios/Storyboard/TyphoonStoryboard.m +++ b/Source/ios/Storyboard/TyphoonStoryboard.m @@ -50,7 +50,7 @@ + (TyphoonStoryboard *)storyboardWithName:(NSString *)name bundle:(NSBundle *)st return [self storyboardWithName:name factory:nil bundle:storyboardBundleOrNil]; } -+ (TyphoonStoryboard *)storyboardWithName:(NSString *)name factory:(TyphoonComponentFactory *)factory bundle:(NSBundle *)bundleOrNil ++ (TyphoonStoryboard *)storyboardWithName:(NSString *)name factory:(id)factory bundle:(NSBundle *)bundleOrNil { TyphoonStoryboard *storyboard = (id) [super storyboardWithName:name bundle:bundleOrNil]; storyboard.factory = factory;