ramotion / paper-onboarding Goto Github PK
View Code? Open in Web Editor NEW:octocat: PaperOnboarding is a material design UI slider. Swift UI library by @Ramotion
Home Page: https://www.ramotion.com/agency/app-development/
License: MIT License
:octocat: PaperOnboarding is a material design UI slider. Swift UI library by @Ramotion
Home Page: https://www.ramotion.com/agency/app-development/
License: MIT License
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/bin/pod install
CocoaPods : 0.39.0
Ruby : ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15]
RubyGems : 2.6.4
Host : Mac OS X 10.11.4 (15E65)
Xcode : 7.3 (7D175)
Git : git version 2.8.2
Ruby lib dir : /Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib
Repositories : master - https://github.com/CocoaPods/Specs.git @ 7081552c485f434e1f704140a64429136ab329d8
cocoapods-plugins : 0.4.2
cocoapods-search : 0.1.0
cocoapods-stats : 0.6.2
cocoapods-trunk : 0.6.4
cocoapods-try : 0.5.1
# Uncomment this line to define a global platform for your project
# platform :ios, '8.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'Turntablism' do
pod 'paper-onboarding'
end
NoMethodError - undefined method `to_ary' for #<Pod::Specification name="paper-onboarding">
Did you mean? to_query
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/resolver/lazy_specification.rb:14:in `method_missing'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/resolver.rb:64:in `flatten'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/resolver.rb:64:in `block in resolve'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/resolver.rb:63:in `tap'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/resolver.rb:63:in `resolve'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/installer/analyzer.rb:539:in `block in resolve_dependencies'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/user_interface.rb:59:in `section'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/installer/analyzer.rb:537:in `resolve_dependencies'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/installer/analyzer.rb:70:in `analyze'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/installer.rb:213:in `analyze'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/installer.rb:136:in `block in resolve_dependencies'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/user_interface.rb:59:in `section'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/installer.rb:135:in `resolve_dependencies'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/installer.rb:105:in `install!'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/command/project.rb:71:in `run_install_with_update'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/command/project.rb:101:in `run'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/claide-0.9.1/lib/claide/command.rb:312:in `run'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/lib/cocoapods/command.rb:47:in `run'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/cocoapods-0.39.0/bin/pod:44:in `<top (required)>'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/bin/pod:22:in `load'
/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/bin/pod:22:in `<main>'
I'm create new project with Xcode 8.2.1 ( using Swift 3 ) and using paper-onboarding 2.0.1. I can't use paper-onboarding. It said that " No such module 'PaperOnboarding' ". What should I do ?
Can we have a way to refresh the view with given new texts/icons etc.?
Hi,
I have two question here,
First, Is it possible to add image/UIView under its title? And how to custom its icon size?
I thought something like add/change some value in onboardingConfigurationItem
Thank you anyway, it is really great library!
-- edited
I can add subview under its title inside onboardingConfigurationItem
. My question remains: How to custom its icon size? Thank you so much!
The leading on our font is quite shallow & it would be nice to be able to adjust.
It would be good if it were possible to set the description text using attributed string.
Is it possible to add a button? What would need to be done? I haven't looked into the code at all. Just curious from seeing the screenshots.
I would like to customise the circles color in every page. Digging inside the library I found that the property is defined inside the PageViewItem
class but it looks like the delegate protocol doesn't expose any method for customising it. How can I change them?
Hi,
Was wondering which part of the lib require iOS 9 (as stated in cocoapods or event 10 on GitHub) as I plan to extend my app compatibility to iOS 8. Is there just on or two things I should try to port or is it simply not possible without huge efforts ?
Please add support for tvOS in CocoaPods.
Tried your framework and its works perfectly :)
Hello Sir,
Can i get paper-onboarding sample in objective c?
thanks in advance.
I need only bottom part of paper-onboarding.
i want bottom part and add to my ContainerView(which contains 3 viewcontroller)
thanks in advance.
I have read the code that I found the top UIImageView's width and height is set to be fixed 188 points.
Then I wonder how I can customize their sizes?
onboardingConfigurationItem is not called for the first page, but by swiping to the second and swiping back will make it called.
Thanks
Hi, I create a "Next" button and want go to next page when user clicked on it, I used below code for button action but not working:
@IBAction func btnNextClick(_ sender: Any) {
let index = onboardingView.currentIndex + 1
onboardingView.currentIndex(index, animated: false)
}
What should i do? tnx
As Xcode 8 and Swift 3 release becoming imminent, do you have any plans for updating this library for that?
P.S.: I have already started the PR, it's way too complicated for me! Done
HI! The Button "skip" in example not showing.
There is the lines:
// Uncomment next line to setup PaperOnboarding
from code:
// setupPaperOnboardingView()
When I uncomment it "skip" button in example not showing.
Any of the method i follow app is getting crashed with fatal error
on this line " guard case let dataSource as PaperOnboardingDataSource = self.dataSource else {
"
` private func createItemsInfo() -> [OnboardingItemInfo] {
guard case let dataSource as PaperOnboardingDataSource = self.dataSource else {
fatalError("set dataSource")
}
var items = [OnboardingItemInfo]()
for index in 0..<itemsCount {
let info = dataSource.onboardingItemAtIndex(index)
items.append(info)
}
return items
}
}`
any clue , please find the attached screenshot of my crashLog
got some errors when build project
Hi guys, can we add support for Right-to-Left languages please?
Problem
The user can interact with the framework in an incredibly intuitive way, providing great information about the app and context to the situation that the app solves/creates. However, the current framework only provides a PaperOnboardingDataSource
which, while powerful, does not provide necessary delegate methods for determining which page the user is on.
Simply accessing the currentIndex
property is either
Proposed Solution
I propose adding a new protocol PaperOnboardingDelegate
which would add a method similar to onboardingItemDidAppear
which would be implemented on line 18 in PaperOnboarding.swift
This method could be called at the end of the moveContainerTo
method in PageView.swift
It's possible that I'll have some time later tonight to put together a quick version of what I'm thinking. Otherwise I really like the framework!
Would be nice to have auto layout for the labels, now when the title label is too long it won't resize.
Please add weak attribute to dataSource and delegate properties.
When we initialized a dataSource and delegate to self, it creates a retain cycle, because Self object has a reference to paper onboarding view and this view dataSource/delegate has a reference to self.
Thank you.
You have any plan to support to send UIView instead of image, text, background color etc. as parameters? It could have been great if I can master my slide views myself.
Thanks!
I'm trying to ad a control like stepper or UIDatePicker to create a tutorial + setup but when i add the view above image view but the gesture view block interactions to the picker .
How to avoid this problem ? any idea ?
my code:
let picker = UIDatePicker()
picker.datePickerMode = .date
picker.translatesAutoresizingMaskIntoConstraints = false
item.addSubview(picker)
let copy = item.imageView!
item.addConstraints([
NSLayoutConstraint(item: picker, attribute: .leading, relatedBy: .equal, toItem: copy, attribute: .leading, multiplier: 1, constant: 0),
NSLayoutConstraint(item: picker, attribute: .trailing, relatedBy: .equal, toItem: copy, attribute: .trailing, multiplier: 1, constant: 0),
NSLayoutConstraint(item: picker, attribute: .top, relatedBy: .equal, toItem: copy, attribute: .top, multiplier: 1, constant: 0),
NSLayoutConstraint(item: picker, attribute: .bottom, relatedBy: .equal, toItem: copy, attribute: .bottom, multiplier: 1, constant: 0)
])
and i tried also to move to front the subview but the gestures do not work
item.superview?.superview?.bringSubview(toFront: item.superview!)
Hi whatever icon size I use it's always too big. Should I draw icons with padding or do I do something bad ?
I am making an iOS app using paper-onboarding and when I run the app in the iOS App simulator it works great. But when I plug my phone in to run it it says something like: "Use of undeclared type 'PaperOnboardingDataSource'"
I am using swift 2.3 in my project
I installed pod version 1.1.3
After successful installation of pods when i open up project.xcworkspace
i get the following errors
Use of undeclared type 'PaperOnboardingDataSource'
Use of undeclared type PaperOnboardingDelegate
Any suggestions for swift version 2.3
Please help
says use of undeclared type to anything that i want to use in my project.
This compiles in Objective-C (installed through Carthage) but the delegate cannot be set. Is there a way I can use this in an objective-c app? Thanks.
Great library!
On Plus devices (iPhone 6/6s/7 Plus) there's a white border around the edges of the screen instead of being filled with the background color.
The background color doesn't extend beyond SafeEdgeInsets and you get VC color on the status bar and near the bottom swipe indicator
I'm having a icon in pdf (converted svg to pdf) so it's a vector.
But the big image is still pixelated. How can I solve this?
Hi,
I am trying to use your delegate methods to open homevc once the user is on the last tab and swipe right, but it doesn't work. How can I swipe the last tab to perform a segue?
I'm using your demo code and trying to make the image full screen and send it to the background.
In ViewController -> onboardingConfigurationItem I have remove the current constrains and added new ones for the image to have full size.
Problem is that it is not working for the first (initial screen). But if I change to screen 2 and go back to initial screen then the method is called and the image is full size.
Any idea why this is happening?
Any idea how to support RTL languages? (Mostly having the icon items on the bottom move the opposite direction)
Thanks
Is it possible to make the image fullscreen? Seems to always show it scaled down in the center.
After doing a pod install
I get an unresolved identifier
error no matter what I do. I have tried:
Dear all,
I'm using Xcode 9 Beta 3 and as soon as I add "PaperOnboardingDelegate" to the ViewController Class and include onboardingView.delegate = self within the ViewDidLoad() I'll get the following error and the App crashes:
2017-08-08 03:33:48.455340+0200 MyProject[7563:1139517] -[MyProject.ViewController onboardingConfigurationItem:index:]: unrecognized selector sent to instance 0x7f88d4602f70
2017-08-08 03:33:48.476036+0200 MyProject[7563:1139517] *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[MyProject.ViewController onboardingConfigurationItem:index:]: unrecognized selector sent to instance 0x7f88d4602f70'
Removing "onboardingView.delegate = self" will work but than the following functions are useless:
func onboardingConfigurationItem(item: OnboardingContentViewItem, index: Int) {
}
func onboardingWillTransitionToIndex(index: Int) {
if index == 1 {
if self.getStartedButton.alpha == 1 {
UIView.animate(withDuration: 0.2, animations: {
self.getStartedButton.alpha = 0
})
}
}
}
func onboardingDidTransitionToIndex(index: Int) {
if index == 2 {
UIView.animate(withDuration: 0.4, animations: {
self.getStartedButton.alpha = 1
})
}
}
Any Ideas? Thanks for a quick reply.
BR,
Michael
I want to have my own background in an image view. However, changing the alpha of the background colour to 0 in onboardingiteminfo seems to set it to white instead.
Hi, are you planning on releasing Paper Onboarding for Swift 3.0.2 and when will you do this?
Thanks.
Hey everyone,
Firstly, that's a cool library to use. Thank you so much.
I was wondering if it is possible to style page indicator dots as I have to work on a white background. In my case, icon for active view is visible but the other indicators are not visible.
Thanks in advance.
Baki
I am using paper-onboarding on my new iOS app. Everything worked well and tested it on a real device. Although everything works perfectly I am getting the below error while trying to validate the app archive to be able to upload it to App Store. What could be the possible reason and solution for this?
iTunes Store operation failed.
Unsupported Architectures. The executable for myAppName.app/Frameworks/PaperOnboarding.framework contains unsupported architectures '[x86_64, i386]'.
Looking for a way to skip the icon in the page selector. Images are typed without "" and the icon appears beside the characters. Looking for any help on the subject. Thanks!
Running Xcode 8.2.1
Hi. Is there a possiblity to reposition the items?
I would like to have the title at the top, the image in the center and the description at the bottom.
To reposition the items should be a "must" for a library like this, but I cant see where to change.
thanks!
Hi there,
How can i open homeVC after last swipe?
Thanks
I'm having this error thrown out when trying to set up paper_onboarding from code, at the end of return onboardingItemAtIndex
[index]
Cannot convert return expression of type '(Image, String, String, Image, UIColor, UIColor, UIColor, UIFont, UIFont)' (aka '(UIImage, String, String, UIImage, UIColor, UIColor, UIColor, UIFont, UIFont)') to return type 'OnboardingItemInfo' (aka '(imageName: String, title: String, description: String, iconName: String, color: UIColor, titleColor: UIColor, descriptionColor: UIColor, titleFont: UIFont, descriptionFont: UIFont)')
All is in the title :) ; how can iI replace the search like image that serve a the container for the image we set ?
Once the walkthrough is done, the contents of the app should be shown. How do I do that?
@ober01
I think must have actions for non-experienced users.
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.