weitieda/bottom-sheet
소개
⬆️ 아래에서 슬라이드되어 나타나는 SwiftUI 뷰 컴포넌트
웹 및 앱 개발측정된 스타 증가
- in 24h
- 0
- in 7 days
- +1
- in 15 days
- +2
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Original

Usage
Same way as you use Sheet in SwiftUI
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 install BottomSheet using Swift 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 tutorial here.
CocoaPods
To install BottomSheet using CocoaPods, add
pod 'BottomSheet', :git => 'https://github.com/weitieda/bottom-sheet.git' to your Podfile, then follow the integration tutorial here.
License
BottomSheet is available under the MIT license. See the LICENSE file for more information.
관련 프로젝트 살펴보기
불러오는 중…