Update package version requirements
To run the example project, clone the repo, and run pod install from the Example directory first.
pod install
let sheetPresentationBehaviourController = SheetPresentationBehaviourController( initialDetent: .defaultSmall, detents: [ .defaultSmall, .defaultMedium, SheetPresentationBehaviourController.Detent(screenCoveragePercentage: 0.9, isScrollable: true) ] ) sheetPresentationBehaviourController.bottomSheet.topIndicatorHeight = 10 sheetPresentationBehaviourController.bottomSheet.topIndicatorWidth = 40 sheetPresentationBehaviourController.bottomSheet.cornerRadius = 20 sheetPresentationBehaviourController.bottomSheet.topIndicatorColor = .red let sheetController = SheetPresentationController( backgroundViewController: TitleViewController(), sheetContentViewController: DefaultScrollableViewController(), sheetPresentationBehaviourController: sheetPresentationBehaviourController )
https://user-images.githubusercontent.com/57398986/168480140-6ef3e155-ea1f-4c10-a3ce-bcad3d63a5fe.mov
SheetPresentationController is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SheetPresentationController'
.package(name: "SheetPresentationController", url: "https://github.com/karolpiateknet/SheetPresentationController", .branch("main")),
Karol Piątek, https://github.com/karolpiateknet
SheetPresentationController is available under the MIT license. See the LICENSE file for more info.
©Copyright 2023 CCF 开源发展委员会 Powered by Trustie& IntelliDE 京ICP备13000930号
SheetPresentationController
Example
To run the example project, clone the repo, and run
pod install
from the Example directory first.https://user-images.githubusercontent.com/57398986/168480140-6ef3e155-ea1f-4c10-a3ce-bcad3d63a5fe.mov
Requirements
Installation
Cocoapods
SheetPresentationController is available through CocoaPods. To install it, simply add the following line to your Podfile:
Swift Package Manager
Author
Karol Piątek, https://github.com/karolpiateknet
License
SheetPresentationController is available under the MIT license. See the LICENSE file for more info.