Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/UIViewController+KNSemiModal.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
#define kSemiModalDidHideNotification @"kSemiModalDidHideNotification"
#define kSemiModalWasResizedNotification @"kSemiModalWasResizedNotification"

extern const struct KNSemiModalOptionKeys {
extern const struct KNSemiModalOption {
__unsafe_unretained NSString *traverseParentHierarchy; // boxed BOOL. default is YES.
__unsafe_unretained NSString *pushParentBack; // boxed BOOL. default is YES.
__unsafe_unretained NSString *animationDuration; // boxed double, in seconds. default is 0.5.
Expand All @@ -45,7 +45,7 @@ extern const struct KNSemiModalOptionKeys {
__unsafe_unretained NSString *backgroundView; // UIView, custom background.
} KNSemiModalOptionKeys;

NS_ENUM(NSUInteger, KNSemiModalTransitionStyle) {
typedef NS_ENUM(NSUInteger, KNSemiModalTransitionStyle) {
KNSemiModalTransitionStyleSlideUp,
KNSemiModalTransitionStyleFadeInOut,
KNSemiModalTransitionStyleFadeIn,
Expand Down
2 changes: 1 addition & 1 deletion Source/UIViewController+KNSemiModal.m
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#import <QuartzCore/QuartzCore.h>
#import <objc/runtime.h>

const struct KNSemiModalOptionKeys KNSemiModalOptionKeys = {
const struct KNSemiModalOption KNSemiModalOptionKeys = {
.traverseParentHierarchy = @"KNSemiModalOptionTraverseParentHierarchy",
.pushParentBack = @"KNSemiModalOptionPushParentBack",
.animationDuration = @"KNSemiModalOptionAnimationDuration",
Expand Down