Coder Social home page Coder Social logo

onboardingkit's Introduction

Cover All of these views are original Apple views, recreated using the library.

OnBoardingKit

OnBoardingKit is a configurable on boarding screen view for SwiftUI. It's inspired by on boarding views on Apple native apps, and UIOnboarding Swift Package.

OnBoardingKit behavior is inspired by the new TipKit library from Apple.

Note

OnBoardingKit is available on iOS 15 and later.

Quick Start

To create an on boarding view, you simply have to create a struct conforming to the OnBoarding protocol. Then, it's very easy to display it with the OnBoardingView.

struct OnBoardingDemo: OnBoarding {
  // …
}

Text("Hello, World!")
  .presentOnBoarding(OnBoardingDemo(), action: {})

Documentation

You can find the full documentation on the wiki.

License

This project is licensed under MIT.

Important

If you're using this project into yours, you must incluse the license and copyright notice

See LICENSE for more details.

onboardingkit's People

Contributors

mlbonniec avatar

Stargazers

 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

onboardingkit's Issues

Create a modifier to present if needed

Description

In addition to the OnBoardingView, a modifier could be created to present the view only if needed.
It'll show the view only if it has never been showed to the user.

Example

The modifier could be used like below.

var body: some View {
  ContentView()
    .presentOnBoardingIfNeeded(SomeOnBoarding(), animate: true)
}

Create multiple modifiers

Some modifiers could be created to affect the OnBoardingView view.

  • setVerticalAlignment(.leading | .center | .trailing)
  • enableAnimations()

Normal software license

Please use a license like MIT or BSD - you can find ones of these that also require attribution. CC isn't well established for software and many orgs cannot use

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.