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
Custom icon and color #6
Conversation
…lor passed in, as well as grows the icon image view to be larger inside the circle view.
…could be passed in for the custom alert view type, and are left nil for all others.
…and added the outlets to handle creating a new custom alert and displaying it.
@@ -124,5 +125,11 @@ typedef NS_ENUM(NSInteger, SCLAlertViewStyle) | |||
*/ | |||
- (void)showTitle:(UIViewController *)vc title:(NSString *)title subTitle:(NSString *)subTitle style:(SCLAlertViewStyle)style closeButtonTitle:(NSString *)closeButtonTitle duration:(NSTimeInterval)duration; | |||
|
|||
/** Show Custom SCLAlertView | |||
* | |||
* TODO |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mamaral Could you please add some documentation to Show Custom? It's one of my current tasks :D
Thanks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, and I will also update the README as well if you'd prefer?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, go ahead and update both. thanks
Cool! 👍 man! |
Alrighty I added a bit of documentation and some basic info for the custom type in the README with a screenshot. Let me know what you think! |
Great ! Merging now |
This pull request adds the ability to create a custom SCLAlertView, using the same title, subtitle, buttons, etc. as the normal alert view, but also being able to customize the icon image/color and button colors.
As you can see from the provided example, using the below code has the following pretty nice result: