• Stars
    star
    229
  • Rank 174,666 (Top 4 %)
  • Language
    Swift
  • License
    MIT License
  • Created almost 3 years ago
  • Updated over 2 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

A library that allows you to easily create various styles of tab views. Supports iOS and macOS.

AxisTabView for SwiftUI

A library that allows you to easily create various styles of tab views. Supports iOS and macOS.

Platforms iOS macOS instagram SPM MIT

Screenshot

Style Style Style
AxisTabView4.mov
AxisTabView-BeadStyle.mov

Example

https://fabulaapp.page.link/233

Usages

AxisTabView(selection: $selection, constant: ATConstant(axisMode: .bottom)) { state in
    ATBasicStyle(state, color: .blue)
} content: {
    Text("Tab 1")
        .tabItem(tag: 0, normal: {
            Text("Tab 1")
        }, select: {
            Text("Tab 1")
                .bold()
                .foregroundColor(Color.yellow)
        })
    Text("Tab 2")
        .tabItem(tag: 1, normal: {
            Text("Tab 2")
        }, select: {
            Text("Tab 2")
                .bold()
                .foregroundColor(Color.yellow)
        })
    Text("Tab 3")
        .tabItem(tag: 2, normal: {
            Text("Tab 3")
        }, select: {
            Text("Tab 3")
                .bold()
                .foregroundColor(Color.yellow)
        })
} onTapReceive: { selectionTap in
    /// Imperative syntax
    print("---------------------")
    print("Selection : ", selectionTap)
    print("Already selected : ", self.selection == selectionTap)
}

Swift Package Manager

The Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the swift compiler. Once you have your Swift package set up, adding AxisTabView as a dependency is as easy as adding it to the dependencies value of your Package.swift.

dependencies: [
    .package(url: "https://github.com/jasudev/AxisTabView.git", .branch("main"))
]

Contact

instagram : @dev.fabula
email : [email protected]

License

AxisTabView is available under the MIT license. See the LICENSE file for more info.

More Repositories

1

FabulaItemsProvider

You can share and communicate with developers around the world through the Fabula app.
Swift
574
star
2

AnimateText

This library for animating text. Developed with SwiftUI. This library supports iOS/macOS.
Swift
305
star
3

AxisTooltip

A library that displays tooltips in the desired view. Supports iOS and macOS.
Swift
182
star
4

AxisSegmentedView

A library that allows you to easily create various styles of segmented views. Supports iOS, macOS and tvOS.
Swift
179
star
5

AxisContribution

A library that expresses a github contribution calendar through an array of dates. Supports iOS and macOS.
Swift
111
star
6

LottieUI

Lottie for SwiftUI. It is a library developed to make Lottie easy to implement. It supports iOS and macOS.
Swift
105
star
7

Zoomable

It is a container that allows you to zoom in and out of an image using only SwiftUI.
Swift
100
star
8

AxisSheet

It is a library that handles the sheet view in 4 directions (.top, .bottom, .leading, .trailing) according to the axis mode. It supports iOS and macOS.
Swift
94
star
9

LETSWIFT23

Let'Swift 2023 컨퍼런슀
Swift
71
star
10

NCDP2023

NCDP 2023 for SwiftUI
Swift
62
star
11

Scroller

You can animate in individual views based on scroll position. Developed with SwiftUI. This library supports iOS/macOS.
Swift
43
star
12

AxisRatingBar

This library is a UI control for iOS and macOS developed with SwiftUI. You can display ratings along the horizontal/vertical axis and receive ratings from users. You can use any view that conforms to the View protocol, not just the star shape.
Swift
32
star
13

UnsplashProvider

It is a package that can use the Unsplash API. It was developed as a SwiftUI.
Swift
23
star
14

fabula.io

HTML
1
star