目录
目录README.md

Animated Tap Bar for SwiftUI

Swift Version License Swift Package Manager compatible

SwiftUI Tap Bar with naviagtion controller. Created after some examples on dribble and these Git

Example

This library requires Swift 5.1 and Xcode 11.

Requirements

  • iOS 13.0+ / macOS 10.15+ / tvOS 13.0+ / watchOS 6.0+
  • Xcode 11+
  • Swift 5.1+

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. It is now integrated in Xcode 11.

Once you have your Swift package set up, adding DropDownModifier as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/fbandemer/AnimatedTapBar.git")
]

Features

  • Full customizable
  • Navigation included

Usage Example

import SwiftUI

struct ExampleView: View {
    
    let items : [TapBarItem] = [
    TapBarItem(icon: Image(systemName: "person.fill"), title: "Person", color: .green, view: AnyView(View1())),
    TapBarItem(icon: Image(systemName: "house.fill"), title: "House", color: .blue, view: AnyView(View2())),
    TapBarItem(icon: Image(systemName: "desktopcomputer"), title: "Desktop", color: .red, view: AnyView(View3())),
    TapBarItem(icon: Image(systemName: "headphones"), title: "Desktop", color: .purple, view: AnyView(View4()))
    ]
    
    var style = TapBarStyle(
        animationType: .default,
        backgroundColor: .white,
        cornerRadius: 30,
        shadowColor: .black,
        shadowRadius: 10,
        unselectedColor: .black)
    
    var body: some View {
        AnimatedTapBar(items: items, style: style)
    }
}
关于
98.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号