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

Overlay cannot be configured as wanted #10

Open
ghost opened this issue May 3, 2017 · 2 comments
Open

Overlay cannot be configured as wanted #10

ghost opened this issue May 3, 2017 · 2 comments

Comments

@ghost
Copy link

ghost commented May 3, 2017

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
Copy link
Author

ghost commented May 4, 2017

+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
Copy link

ist1373 commented Oct 23, 2017

does any one find solution for this problem?

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

No branches or pull requests

1 participant