Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add typedef on NS_ENUM #71

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions Source/UIViewController+KNSemiModal.h
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
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