-
Notifications
You must be signed in to change notification settings - Fork 105
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
How to customize labels and buttons of SwiftyOnboardOverlay or SwiftyOnboard #35
Comments
@IslasGiga I looked at SwiftyOnBoard's code and it is using an enum that has only // SwiftyOnBoardOverlay.swift
open func set(style: SwiftyOnboardStyle) {
switch style {
case .light:
continueButton.setTitleColor(.white, for: .normal)
skipButton.setTitleColor(.white, for: .normal)
pageControl.currentPageIndicatorTintColor = UIColor.white
case .dark:
continueButton.setTitleColor(.black, for: .normal)
skipButton.setTitleColor(.black, for: .normal)
pageControl.currentPageIndicatorTintColor = UIColor.black
}
}
// SwiftyOnBoardPage.swift
func set(style: SwiftyOnboardStyle) {
switch style {
case .light:
title.textColor = .white
subTitle.textColor = .white
case .dark:
title.textColor = .black
subTitle.textColor = .black
}
} So you can only change between black and white text for now. I don't have much time to write a PR to fix this right now but I'll try to do it when on my free time. You can also try fixing this issue yourself and submitting the PR! |
@cdiezmoran, great looking in code! I would suggest you to add |
You can create your own overlay too. |
I'm trying to customize labels of SwiftyOnboard (change colors, font...) and the skip button, but it's not working.
The text was updated successfully, but these errors were encountered: