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

Correction for Xcode 9+ #101

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
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
12 changes: 6 additions & 6 deletions Classes/TWMessageBarManager.h
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) {
* @param type Type dictates color, stroke and icon shown in the message view.
* @param callback Callback block to be executed if a message is tapped.
*/
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type callback:(nullable void (^)())callback;
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type callback:(nullable void (^)(void))callback;

/**
* Shows a message with the supplied title, description, type & duration.
Expand All @@ -168,7 +168,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) {
* @param duration Default duration is 3 seconds, this can be overridden by supplying an optional duration parameter.
* @param callback Callback block to be executed if a message is tapped.
*/
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration callback:(nullable void (^)())callback;
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration callback:(nullable void (^)(void))callback;

/**
* Shows a message with the supplied title, description, type, status bar style and callback block.
Expand All @@ -179,7 +179,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) {
* @param statusBarStyle Applied during the presentation of the message. If not supplied, style will default to UIStatusBarStyleDefault.
* @param callback Callback block to be executed if a message is tapped.
*/
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type statusBarStyle:(UIStatusBarStyle)statusBarStyle callback:(nullable void (^)())callback;
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type statusBarStyle:(UIStatusBarStyle)statusBarStyle callback:(nullable void (^)(void))callback;

/**
* Shows a message with the supplied title, description, type, duration, status bar style and callback block.
Expand All @@ -191,7 +191,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) {
* @param statusBarStyle Applied during the presentation of the message. If not supplied, style will default to UIStatusBarStyleDefault.
* @param callback Callback block to be executed if a message is tapped.
*/
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration statusBarStyle:(UIStatusBarStyle)statusBarStyle callback:(nullable void (^)())callback;
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration statusBarStyle:(UIStatusBarStyle)statusBarStyle callback:(nullable void (^)(void))callback;

/**
* Shows a message with the supplied title, description, type, status bar hidden toggle and callback block.
Expand All @@ -202,7 +202,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) {
* @param statusBarHidden Status bars are shown by default. To hide it during the presentation of a message, set to NO.
* @param callback Callback block to be executed if a message is tapped.
*/
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type statusBarHidden:(BOOL)statusBarHidden callback:(nullable void (^)())callback;
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type statusBarHidden:(BOOL)statusBarHidden callback:(nullable void (^)(void))callback;

/**
* Shows a message with the supplied title, description, type, duration, status bar hidden toggle and callback block.
Expand All @@ -214,7 +214,7 @@ typedef NS_ENUM(NSInteger, TWMessageBarMessageType) {
* @param statusBarHidden Status bars are shown by default. To hide it during the presentation of a message, set to NO.
* @param callback Callback block to be executed if a message is tapped.
*/
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration statusBarHidden:(BOOL)statusBarHidden callback:(nullable void (^)())callback;
- (void)showMessageWithTitle:(nullable NSString *)title description:(nullable NSString *)description type:(TWMessageBarMessageType)type duration:(CGFloat)duration statusBarHidden:(BOOL)statusBarHidden callback:(nullable void (^)(void))callback;

/**
* Hides the topmost message and removes all remaining messages in the queue.
Expand Down