SheetPresentationController

0.3.0

karolpiateknet/SheetPresentationController

What's New

0.3.0 SPM support

2022-05-26T13:34:26Z

SheetPresentationController

Version License Platform

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

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
)
SheetPresentationController_video.mov

Requirements

  • iOS 11
  • Swift 5.0

Installation

Cocoapods

SheetPresentationController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SheetPresentationController'

Swift Package Manager

.package(name: "SheetPresentationController", url: "https://github.com/karolpiateknet/SheetPresentationController", .branch("main")),

Author

Karol Piątek, https://github.com/karolpiateknet

License

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

Description

  • Swift Tools
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Oct 17 2024 22:17:30 GMT-0900 (Hawaii-Aleutian Daylight Time)