Code Monkey home page Code Monkey logo

paper-onboarding's People

Contributors

0ber avatar aleksei1000000 avatar alexmik89 avatar cgoldsby avatar coledunsby avatar defagos avatar igork-ramotion avatar ikolpachkov avatar jerytymate avatar juriv avatar kizitonwose avatar maxxfrazer avatar mohpor avatar radarhere avatar ramotiondev avatar ramotionrussell avatar rishabhtayal avatar ronnielsen avatar stephenclarkapps avatar tiagomartinho avatar zeusent avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

paper-onboarding's Issues

Error pulling from CocoaPods

Command

/Users/thibaultmaekelbergh/.rbenv/versions/2.3.1/bin/pod install

Report

  • What did you do?
  • What did you expect to happen?
  • What happened instead?

Stack

   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

Plugins

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

Podfile

# 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

Error

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>'

iOS 8 Compatibility

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 ?

Can't use paper-onboarding

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 ?

unrecognized selector sent to instance

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

Can we hide Bottom?

I need only bottom part of paper-onboarding.

i want bottom part and add to my ContainerView(which contains 3 viewcontroller)

thanks in advance.

Changing page circle indicator color

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?

onboardingConfigurationItem not called for index 0

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?

Auto layout

Would be nice to have auto layout for the labels, now when the title label is too long it won't resize.

Attributed description

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.

Consider adding a PaperOnboardingDelegate

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

  • Not powerful enough for receiving notifications as this property must be checked periodically
  • Not available within the scope of the function depending on where it's trying to be accessed, making it impossible to determine state/switch based on where the user is.

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!

Cannot convert return expression of type

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)')

Does not fill screen on Plus devices

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.

Styling Page Indicators

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

How can I change the top UIImageView's size

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

Add Control

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!)

currentIndex() function not working

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

Swift 3 Support?

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

RTL support

Any idea how to support RTL languages? (Mostly having the icon items on the bottom move the opposite direction)

Thanks

Transparent background

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.

iPhone X support

The background color doesn't extend beyond SafeEdgeInsets and you get VC color on the status bar and near the bottom swipe indicator

Button "skip" in example not showing

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.

Use of undeclared type 'PaperOnboardingDataSource' , PaperOnboardingDelegate

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

Adding Image and Custom Its Size

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!

Unsupported Architectures error while archive validation process

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]'.

pdf icon doesn't scale

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?

Swift 3.0.2 support.

Hi, are you planning on releasing Paper Onboarding for Swift 3.0.2 and when will you do this?
Thanks.

Sending UIView instead of image, text etc.

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!

Icon Images

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

Replace the Search image

All is in the title :) ; how can iI replace the search like image that serve a the container for the image we set ?

Button

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.

Way to refresh?

Can we have a way to refresh the view with given new texts/icons etc.?

Memory leak

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.

Make image fullscreen?

Is it possible to make the image fullscreen? Seems to always show it scaled down in the center.

Reposition of title, description and image

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!

App works in simulator but not on real device

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'"

Crash on setting up the delegate

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
screen shot 2016-06-22 at 5 04 47 pm

Icons too big

Hi whatever icon size I use it's always too big. Should I draw icons with padding or do I do something bad ?

Objective-C

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.