PhilippeBoisney / AlertOnboarding

A simple and attractive AlertView to onboard your users in your amazing world.
MIT License
842 stars 109 forks source link

Double page control #2

Closed xradeon closed 8 years ago

xradeon commented 8 years ago

I wanted to show the alert with some transparency so I used the next settings:

        let alpha: CGFloat = 0.82
        let blueAlpha = UIColor(red: 3/255, green: 169/255, blue: 244/255, alpha: alpha)

        alertView.colorForAlertViewBackground = UIColor(white: 0, alpha: alpha)
        alertView.colorButtonText = UIColor(white: 1, alpha: alpha)
        alertView.colorButtonBottomBackground = blueAlpha
        alertView.colorTitleLabel = UIColor(white: 1, alpha: alpha)
        alertView.colorDescriptionLabel =  UIColor(white: 1, alpha: alpha)
        alertView.colorPageIndicator =  UIColor(white: 1, alpha: alpha)
        alertView.colorCurrentPageIndicator = blueAlpha

But then the page control background area was darkened. I realized that the backgroundColor of the page control was the same used in the alert view, so I made a quick mod to the next line in AlertPageViewController:

    self.pageControl.backgroundColor = alertview.colorForAlertViewBackground

to

    self.pageControl.backgroundColor = UIColor.clearColor()

Now it seems like there are two page controls overlapped.

PhilippeBoisney commented 8 years ago

I've just fixed it on release 1.5. Thank you (Again) for your help :)

xradeon commented 8 years ago

Thanks to you for this great little control and for the quick fix!