AxisSheet for SwiftUI

Overview

AxisSheet for SwiftUI

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.

Platforms iOS macOS instagram SPM MIT

Screenshot

Example Bottom Trailing
AxisSheet.mp4

Example

https://fabulaapp.page.link/228

Usages

  1. How to use the default header views.
    AxisSheet(isPresented: $isPresented, constants: constants) {
         Text("Content View")
    }
    
    /// or
    
    Text("Content View")
         .axisSheet(isPresented: $isPresented, constants: constants)
  2. How to use custom header views.
    AxisSheet(isPresented: $isPresented, constants: constants, header: {
        Rectangle().fill(Color.red.opacity(0.5))
            .overlay(Text("Header"))
    }, content: {
        Text("Content View")
    })
    
    /// or
    
    Text("Content View")
        .axisSheet(isPresented: $isPresented, constants: constants) {
            Rectangle().fill(Color.red.opacity(0.5))
                .overlay(Text("Header"))
        }

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 AxisSheet as a dependency is as easy as adding it to the dependencies value of your Package.swift.

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

Contact

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

License

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

You might also like...
SwiftUI native-like onboarding sheets
SwiftUI native-like onboarding sheets

Welcome Sheet Welcome sheet for swiftUI enables incredibly easy way for creating onboarding screens, update notes, or whatever you imagine! The main i

JAlert - This is "Alert View" project for UIKit + SwiftUI. you can use easily

JAlert Example To run the example project, clone the repo, and run pod install from the Example directory first. Requirements Installation JAlert is a

DataDrivenAlert - Extension for SwiftUI.Alert for data driven configuration
DataDrivenAlert - Extension for SwiftUI.Alert for data driven configuration

Data driven alert and confirmation dialog Based on Composable Architecture Alert

Animated Alert written in SwiftUI.
Animated Alert written in SwiftUI.

TransactionAlert Animated Alert written in SwiftUI. Easy to use Get Started Add a TAViewModel instance as an environment object to your Root View in y

PageSheet - Customizable sheets using UISheetPresentationController in SwiftUI

PageSheet Customizable sheet presentations in SwiftUI. Using UISheetPresentation

AxisTooltip for SwiftUI
AxisTooltip for SwiftUI

AxisTooltip for SwiftUI A library that displays tooltips in the desired view. Supports iOS and macOS. Screenshot Top/Bottom Leading/Trailing AxisToolt

An iOS library for SwiftUI to create draggable sheet experiences similar to iOS applications like Maps and Stocks.

An iOS library for SwiftUI to create draggable sheet experiences similar to iOS applications like Maps and Stocks.

DropView - A SwiftUI library to display Apple Pencil and Pasteboard-like alerts on iOS.
DropView - A SwiftUI library to display Apple Pencil and Pasteboard-like alerts on iOS.

DropView is a SwiftUI-based library to display alerts inspired by the Apple Pencil and pasteboard stock ones.

TextFieldAlert - A SwiftUI alert with text field(s) for iOS 13 and greater.
TextFieldAlert - A SwiftUI alert with text field(s) for iOS 13 and greater.

TextFieldAlert A SwiftUI alert with text field(s) for iOS 13 and greater. As Apple is going to introduce text field(s) as an alert actions in iOS 16,

Comments
  • Feature Request: Background affects safe areas

    Feature Request: Background affects safe areas

    I'm using this as a drop-down sheet on an iPhone 10, with a notch. The sheet & header don't darken the top safe areas, and I think it would actually be a nice feature to have πŸ€”

    opened by MrSkwiggs 0
Releases(0.5.2)
Owner
jasu
jasu
BottomSheet makes it easy to take advantage of the new UISheetPresentationController in SwiftUI with a simple .bottomSheet modifier on existing views.

BottomSheet makes it easy to take advantage of the new UISheetPresentationController in SwiftUI with a simple .bottomSheet modifier on existing views.

Adam Foot 341 Dec 15, 2022
BottomSheet makes it easy to add custom bottom sheets to your SwiftUI apps.

BottomSheet About BottomSheet BottomSheet makes it easy to add custom bottom sheets to your SwiftUI apps. The result can look like this...or completel

Daniel Saidi 174 Jan 2, 2023
Easily create different alerts in SwiftUI

AlertWizard ????‍♂️ This package lets you easily create different alerts in SwiftUI with the call of a single function. As this is my first package th

null 3 Jun 3, 2021
Bursts πŸ”₯ A Funny Framework is showing alerts, Have been Adapting Swift and SwiftUI

Bursts ?? A Funny Framework is showing alerts, Have been Adapting Swift and SwiftUI Features iOS 10+ Can be used in UIKit and SwiftUI applications Lig

Jovins 11 Apr 22, 2022
Create Apple-like alerts & toasts using SwiftUI

AlertToast-SwiftUI Present Apple-like alert & toast in SwiftUI ?? Example ?? Overview Currently in SwiftUI, the only way to inform the user about some

Elai Zuberman 1.1k Dec 29, 2022
an extension library for SwiftUI sheets.

SheetKit SheetKit is an extension library for SwiftUI sheets. δΈ­ζ–‡η‰ˆθ―΄ζ˜Ž with Picture What is SheetKit SheetKit is a library of extensions for SwiftUI moda

δΈœε‘θ‚˜ε­ 65 Dec 31, 2022
SwiftUI Draggable Bottom Sheet

SwiftUI Draggable Bottom Sheet

paigeshin 2 Mar 3, 2022
A SwiftUI Partial Sheet fully customizable with dynamic height

A SwiftUI Partial Sheet fully customizable with dynamic height

Andrea Miotto 1.4k Jan 5, 2023
Native alert from Apple Music & Feedback. Contains Done, Heart & Message and other presets. Support SwiftUI.

SPAlert Popup from Apple Music & Feedback in AppStore. Contains Done, Heart, Error and other presets. Supports Dark Mode. I tried to recreate Apple's

Ivan Vorobei 1.4k Dec 10, 2021
A SwiftUI wrapper of the new UIKit sheetPresentationController's capabilities in iOS15.

BottomSheet Bring to SwiftUI the UIKit bottom sheet capabilities that came with iOS15. Usage Show the bottom sheet Button(action: { show.toggle() }) {

Kaww 8 Dec 29, 2022