Swiftpack.co - donggyushin/DGBottomSheet as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by donggyushin.
donggyushin/DGBottomSheet v1.0.5
The lightest swift bottom sheet library
⭐️ 3
🕓 4 days ago
iOS
.package(url: "https://github.com/donggyushin/DGBottomSheet.git", from: "v1.0.5")
  1. DGBottomSheet
  2. Requirements
  3. Installation
  4. Usage

DGBottomSheet

The lightest swift bottom sheet library

Requirements

  • iOS 12.0+
  • Swift 5.5+
  • Xcode 10.0+

Installation

SPM

File > Add Packages > https://github.com/donggyushin/DGBottomSheet

CocoaPod

pod 'DGBottomSheet', :git => 'https://github.com/donggyushin/DGBottomSheet'

Usage

func showBottomSheet() {
    let contentsView: UIView = {
        let view = UIView()
        view.translatesAutoresizingMaskIntoConstraints = false
        // You should give view height constraint anyway
        view.heightAnchor.constraint(equalToConstant: 300).isActive = true
        view.backgroundColor = .white
        return view
    }()
    let vc = DGBottomSheet(view: contentsView)
    // Make sure animated false 
    self.present(vc, animated: false)
}

// You can also hide DGBottomSheet programmatically
let vc = DGBottomSheet(view: contentsView)
vc.hide()

GitHub

link
Stars: 3
Last commit: 2 days ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

v1.0.5
4 days ago

What's Changed

Full Changelog: https://github.com/donggyushin/DGBottomSheet/compare/v1.0.4...v1.0.5

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics