Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

⬆️ A SwiftUI view component sliding in from bottom

License

NotificationsYou must be signed in to change notification settings

weitieda/bottom-sheet

Repository files navigation

SwiftUI BottomSheet

GitHub tag (latest SemVer)License

previewpreview

Usage

Same way as you useSheet inSwiftUI

NavigationView{List(0..<20){Text("\($0)")}.listStyle(PlainListStyle()).bottomSheet(isPresented: $isPresented, height:300){List(20..<40){Text("\($0)")}.listStyle(PlainListStyle())}.navigationBarTitle("Bottom Sheet").navigationBarItems(        trailing:Button(action:{self.isPresented=true}){Text("Show")})}

Example

Both demo preview code are available in example project.

To run the example project, clone this repo, and open iOS Example.xcworkspace from the iOS Example directory.

Installation

📱 iOS 13.0+

Swift Package Manager

To installBottomSheet usingSwift Package Manager, add.package(name: "BottomSheet", url: "https://github.com/weitieda/bottom-sheet", from: "1.0.0")," to your Package.swift, then follow the integration tutorialhere.

CocoaPods

To installBottomSheet usingCocoaPods, addpod 'BottomSheet', :git => 'https://github.com/weitieda/bottom-sheet.git' to your Podfile, then follow the integration tutorialhere.

License

BottomSheet is available under the MIT license. Seethe LICENSE file for more information.

About

⬆️ A SwiftUI view component sliding in from bottom

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors8


[8]ページ先頭

©2009-2025 Movatter.jp