Giter Site home page Giter Site logo

c-villain / wavedtabview Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 1.0 3.64 MB

Example how tab view can be customised and animated in SwiftUI

License: MIT License

Swift 100.00%
ios13 swiftui swiftui-animation swiftui-animations swiftui-components swiftui-example swiftui-learning tabview

wavedtabview's Introduction

WavedTabView

contact: @lexkraev Telegram Group

Tutorial how tab bar can be customised and animated using SwiftUI

Full demo video you may find here.

๐Ÿ‘จ๐Ÿปโ€๐Ÿ’ป Feel free to subscribe to channel SwiftUI dev in telegram.

If you like this repository, please do โญ to make this useful for others.

Quick start

  • upside-waved variant:

Example with leading and trailing swipes

  • inside-waved variant:

Example with leading and trailing swipes

  • without wave, classical variant:

Example with leading and trailing swipes

Installation

To install waved tab view attach WavedTabView.swift file to your project and call:

import SwiftUI

@main
struct SUIChallengesApp: App {
    var body: some Scene {
        WindowGroup {
            WavedTabView() // <=== HERE!
        }
    }
}

or for example in SceneDelegate:

func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) {
        let contentView = WavedTabView() // // <=== HERE!
       
        if let windowScene = scene as? UIWindowScene {
            let window = UIWindow(windowScene: windowScene)
            window.rootViewController = UIHostingController(rootView: contentView)
            self.window = window
            window.makeKeyAndVisible()
        }
    }

Requirements

  • iOS 13.0

Special thanks

to Dmitriy Soloshenko for his contributing.

Communication

  • If you found a bug, open an issue or submit a fix via a pull request.
  • If you have a feature request, open an issue or submit a implementation via a pull request or hit me up on [email protected] or telegram.
  • If you want to contribute, submit a pull request onto the master branch.

wavedtabview's People

Contributors

c-villain avatar

Stargazers

 avatar  avatar

Watchers

 avatar

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.