juanpablofernandez / swiftyonboard Goto Github PK
View Code? Open in Web Editor NEWA swifty iOS framework that allows developers to create beautiful onboarding experiences.
License: MIT License
A swifty iOS framework that allows developers to create beautiful onboarding experiences.
License: MIT License
If you pass "black" background color using a delegate it will crash. However it will not crash if I create black color like this (UIColor.init(red: 0.0, green: 0.0, blue: 0.0, alpha: 1.0)
).
func swiftyOnboardBackgroundColorFor(_ swiftyOnboard: SwiftyOnboard, atIndex index: Int) -> UIColor? {
return UIColor.black //This will crash. 🔥
}
Dear developer,
I tried to install this SwiftyOnboard pod into my project, but its page control doesn't synchronize with a swipe action.
For example, even if I swipe the display to the next page, the dot point of page control doesn't move.
Plus, even if I tap the dot, the display doesn't move to the designated page.
In order to synchronize page control and swipe and tap actions like the demo, where and which code should I add?
My environment is Xcode 9 beta 6, macOS Sierra.
I'm a beginner who started learning of iOS development 2 months ago, so I wonder if you cloud explain a solution to me simply.
Thanks in advance from Japan.
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.
swiftyOnboardOverlayForPosition
can 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.
https://gyazo.com/970f9e7ee56fb83a06c79de74a3ddd75
https://gyazo.com/b74b5236cb291f3ed263b86d06eafb78
Please check these screen shorts
these functions were changed in Swift 4.2
I cannot fit more than 2 lines of text to the SwiftyOnboardPage title label. Is there a way to get more lines? numberOfLines is set to 0 (auto) originally and I tried to manually set it to 0 and 3. I also tried to call sizeToFit() and set adjustsFontSizeToFitWidth = true. If it matters I have manually set a custom font with size of 22 and I am testing on iPhone 6 Plus simulator.
Is there a specific reason why the continue button does not function when running the storyboard example view controller?
You should define the delegate as a weak variable to prevent memory cycles.
Does SwiftyOnboard support right-to-left languages, so user can swipe from left to right?
Setting the style per page is protected. Perhaps consider exposing the set method to set the style?
I'm open to working on it but would like to know your thoughts before trying anything
Trying to use this and I'm getting a build time error from Swift Compiler and it appears some changes from Swift 3 to Swift broke part..
Argument of '#selector' refers to instance method 'didTapPageControl' that is not exposed to Objective-C
'init(colorLiteralRed:green:blue:alpha:)' is unavailable: This initializer is only meant to be used by color literals
Argument of '#selector' refers to instance method 'tappedPage()' that is not exposed to Objective-C
I am trying to upload new images and I have to change the size of images. How it can be done?
Please Help!
Hey, really neat framework.
I refactored some of the protocols to match up with the Swift 3 syntax.
I also added a new color transitioning feature.
https://github.com/Minitour/SwiftyOnboard
Keep up the good work 😄
This is because, the container view's x & y are shifted, according to the non-fullscreen view's x & y.
Steps to reproduce:
Hello, I tried following the examples, it worked well for the CustomPage, everything shows as expected, unfortunately it's not working for the CustomOverlay... Don't know why... I can modify the elements (i.e the buttons) programmatically but it seems to never update itself.
func swiftyOnboardOverlayForPosition(_ swiftyOnboard: SwiftyOnboard, overlay: SwiftyOnboardOverlay, for position: Double) {
print("====> test <====")
let overlay = overlay as! CustomOverlay
let currentPage = round(position)
overlay.pageControl.currentPage = Int(currentPage)
overlay.buttonContinue.tag = Int(position)
if currentPage == 0.0 || currentPage == 1.0 {
overlay.buttonContinue.isHidden = true
} else {
overlay.buttonContinue.isHidden = false
overlay.buttonContinue.setTitle("Get Started!", for: .normal)
}
}
Test is never printed. And using default overlay gets the controlPage updated but not the buttons.
Hi, I didn't see in the documentation or the example a guide on how to link up the continue button to link the click action to another view controller did I miss something?
Also it would seem you would want to run this in a first run situation, do you have a preferred method of detecting first run and launching SwiftyOnboard?
On import SwiftyOnboard
an error occur: Module file's minimum deployment target is iOS10.2 v10.2
.
Installation by Carthage.
Hi guys, why did I get this error No such module 'SwiftyOnboard' in Xcode 9? I'm installing SwiftyOnboard using pod and import SwiftyOnboard in ViewController . Thanks in advance
i want to use auto slide in every 3 second
If I try to customize some constraints, I have a problem. My first idea is to create a SwiftyOnboardPage
class and override thesetUp ()
method to my constraints. Its not work, after that I try to override
init () method, but
init () in
SwiftyOnboardPage` does not have a public type.
After then I updated the original init ()
method in SwiftyOnboardPage
and all works pretty well.
Same problem is override setUp
method
Set setUp
method as open
If you have any other idea to craate your own page, please tell me.
Hi,
The skip and continue buttons are not working. Can you help me with this please?
UIPageControl dots isn't connected with code, it doesn't work, pages is working, but dots not moving
@IBOutlet weak var contentControl: UIPageControl! --- with empty circle connection, and got error if launch without connection
Swift 4
xCode 9
I'm trying to customize labels of SwiftyOnboard (change colors, font...) and the skip button, but it's not working.
From Fall 2023 Apple starts rolling out new privacy requirements, The apps and third-party SDKs should contain a privacy manifest file when they access required reason API. SkeletonView SDK uses UserDefaults which is required description of use in PrivacyManifest.
Otherwise, apps that don’t describe their use of required reason API in their privacy manifest file won’t be accepted by App Store Connect. Here is a link to the [Apple documentation].(https://developer.apple.com/documentation/bundleresources/privacy_manifest_files/describing_use_of_required_reason_api).
Add a PrivacyInfo.xcprivacy file and the following information to the Privacy Accessed API Types section
Privacy Accessed API Type: User Defaults
Privacy Accessed API Reasons: CA92.1: Access info from same app, per documentation
Have followed the Readme and I can see the onboarding screens and can swipe between them but when trying to press the Continue or Skip buttons nothing happens other than the button doing the animation to show its been pressed
Running the Example works as intended but it seems to be using an old version of SwiftyOnboard
I have tried copying the code from the Example ViewController.swift into my project and updating the couple of things that have changed but again the Continue and Skip buttons don't Continue or Skip
iPhone X Support + Localization?
How do we enable localization on the string level using swiftyonboard?
I want to animate some objects (UIImage) while transitioning. Here's an example.
If the transition is across UIViewController
, I can just use Hero library. Is there any way I can achieve it here?
An ideal solution is that I assign the same id
to two images in different slides, and it animates while sliding to its new position.
Cannot subclass SwiftyOnboardOverlay
since the init which takes a CGRect
is internal
(not marked as public
).
the code is calling
func swiftyOnboardPageForIndex(_ swiftyOnboard: SwiftyOnboard, index: Int) -> SwiftyOnboardPage? {
but SwiftyOnboardPage is not showing
Hi, I am loading images in that UIView, but I can't able to add zoom and pinch gestures to that image.
Please solve this ASAP
SwiftyOnboardDataSource
protocol have the method swiftyOnboardPageForIndex
returning a SwiftyOnboardPage
.
This is a huge limitation to SwiftyOnboard customisation. Please consider returning UIView
instead of SwiftyOnboardPage
.
Showing All Messages
/Package.swift has no Package.swift manifest in https://github.com/juanpablofernandez/SwiftyOnboard
It looks like some autoresizingMask is needed on scrollView and possibly other places to ensure that an orientation change correctly resizes the elements.
Please add Carthage as a way of installing SwiftyOnboard!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.