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
Adds optional bottom switch to FancyAlertView #21
Conversation
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.
✅ Changes make sense
✅ Sample app looks good
I've added two notes (extra newlines). Feel free to merge anytime!
Example/Example/ViewController.swift
Outdated
} | ||
|
||
// MARK: Fancy Alert | ||
|
||
func showFancyAlert() { | ||
func showFancyAlert( | ||
moreInfoButton: FancyAlertViewController.Config.ButtonConfig? = nil, |
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.
Is this extra space on purpose? Not sure if this is a new guideline, but it's a bit confusing!!
Example/Example/ViewController.swift
Outdated
} | ||
|
||
func showFancyAlertWithSwitch() { | ||
|
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.
Nipticky: Extra newline here
Description:
This PR adds an optional bottom switch to
FancyAlertView
. This is intended to be used (at least initially) as a "Do not show this again" option for the alert.Also adds 2 demos to showcase the "More information" button and the newly added switch.
Also fixes all unit tests.
Testing:
Make sure the code looks fine.
Make sure the unit tests run fine.
Run the example App and: