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

Adds optional bottom switch to FancyAlertView #21

Merged
merged 7 commits into from Nov 1, 2018

Conversation

diegoreymendez
Copy link
Contributor

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:

  • Open all 3 Fancy alert demos, and make sure they look fine.
  • Try interacting with things and make sure an alert comes up describing your action.

Copy link
Contributor

@jleandroperez jleandroperez left a 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!

:shipit:

}

// MARK: Fancy Alert

func showFancyAlert() {
func showFancyAlert(
moreInfoButton: FancyAlertViewController.Config.ButtonConfig? = nil,
Copy link
Contributor

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!!

}

func showFancyAlertWithSwitch() {

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nipticky: Extra newline here

@diegoreymendez diegoreymendez merged commit 58ee5c7 into develop Nov 1, 2018
@diegoreymendez diegoreymendez deleted the try/add-second-example branch November 1, 2018 14:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants