Comments (3)
@cdiezmoran, great looking in code! I would suggest you to add custom
type for SwiftyOnboardStyle
that let devs can use they own style.
from swiftyonboard.
@IslasGiga I looked at SwiftyOnBoard's code and it is using an enum that has only .light
and .dark
, this enum is overriding any colors you are setting on this two functions:
// 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!
from swiftyonboard.
You can create your own overlay too.
If you want to cover the changes you just mentioned I would suggest overriding the properties of this objects in swiftyOnboardViewForOverlay
as explained in the documentation and the examples.
from swiftyonboard.
Related Issues (20)
- swiftyOnboardOverlayForPosition never being called HOT 1
- How do I code what view controller is linked to the continue button? HOT 3
- UIPageControl dots isn't connected HOT 2
- how to use auto slide onboarding? HOT 2
- Can I animate while swipe?
- Changing orientation doesn't change view orientation
- SwiftyOnboardPage not showing HOT 1
- How to style the images HOT 3
- Crash when background color set to "black" using delegate HOT 1
- Build fail on Swift 4.2
- RTL (right-to-left) languages support HOT 3
- Skip and Continue buttons not working HOT 1
- Can't override page init
- Title not fitting completely in label
- SwiftyOnboardPage isn't setup correctly if the view isn't fullscreen. HOT 2
- Can't Adding pinch and zoom gestures
- Swift Package Manager support? HOT 2
- Cannot subclass SwiftyOnboardOverlay
- Apple's update to their API policy - Required Reason in Privacy manifest
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from swiftyonboard.