juanpablofernandez / SwiftyOnboard

A swifty iOS framework that allows developers to create beautiful onboarding experiences.
MIT License
1.25k stars 105 forks source link

Overlay cannot be configured as wanted #10

Open ghost opened 7 years ago

ghost commented 7 years ago

On current version there is no way to modify overlay's elements, i.e. continueButton and skipButton.

Settings made in swiftyOnboardViewForOverlay are replaced by inner function set(style:) and overlay is not accessible outside the file.

swiftyOnboardOverlayForPositioncan be use but is not call at init so changes dot not show on the initial display: a user action must occur for this method to be called.

ghost commented 7 years ago

+1

You can customize those elements like this:

func swiftyOnboardViewForOverlay(_ swiftyOnboard: SwiftyOnboard) -> SwiftyOnboardOverlay? {
        let overlay = SwiftyOnboardOverlay()
        DispatchQueue.main.asyncAfter(deadline: .now() + 0.01) {
            // Customize overlay's elements here
        }
        return overlay
}

This is an ugly hack you can use until this bug gets fixed (hope soon).

ist1373 commented 6 years ago

does any one find solution for this problem?