All Projects → nicol3a → NBBottomSheet

nicol3a / NBBottomSheet

Licence: MIT License
An iOS library that presents a bottom sheet using Auto Layout.

Programming Languages

swift
15916 projects
ruby
36898 projects - #4 most used programming language
objective c
16641 projects - #2 most used programming language

Projects that are alternatives of or similar to NBBottomSheet

Mbpopup
macOS status bar popups done right 😎
Stars: ✭ 89 (+48.33%)
Mutual labels:  carthage, popup
Cdalertview
Highly customizable alertview and alert/notification/success/error/alarm popup written in Swift
Stars: ✭ 1,056 (+1660%)
Mutual labels:  carthage, popup
Stpopup
STPopup provides STPopupController, which works just like UINavigationController in popup style, for both iPhone and iPad. It's written in Objective-C and compatible with Swift.
Stars: ✭ 2,517 (+4095%)
Mutual labels:  popup, bottom-sheet
react-spring-bottom-sheet
Accessible ♿️, Delightful ✨, & Fast 🚀
Stars: ✭ 604 (+906.67%)
Mutual labels:  popup, bottom-sheet
PXDToolkit
A collection of Swift utility extensions and functions
Stars: ✭ 14 (-76.67%)
Mutual labels:  carthage
Rocket-Notes
The World's Fastest Note Taking App. Fast. Simple. Create a note in one tap! Create image and text notes directly from your home screen!
Stars: ✭ 20 (-66.67%)
Mutual labels:  popup
react-native-relative-popup
A popup component that sticks to an element and stays on top of everything.
Stars: ✭ 15 (-75%)
Mutual labels:  popup
mediawiki-extensions-Popups
GitHub mirror of MediaWiki extension Popups - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing
Stars: ✭ 37 (-38.33%)
Mutual labels:  popup
EllipticCurve
An elliptic curve library written in Swift 4
Stars: ✭ 18 (-70%)
Mutual labels:  carthage
Process
A POSIX compliant library to run external applications in Swift.
Stars: ✭ 14 (-76.67%)
Mutual labels:  carthage
SBCardPopup
Card Popup UI for iOS
Stars: ✭ 66 (+10%)
Mutual labels:  popup
SwiftVer
Easily Manage Versioning in MacOS, iOS, watchOS, and tvOS projects.
Stars: ✭ 23 (-61.67%)
Mutual labels:  carthage
clevertap-ios-sdk
CleverTap iOS SDK
Stars: ✭ 39 (-35%)
Mutual labels:  carthage
validation-components
A collection of common validation predicates for ValidationToolkit framework
Stars: ✭ 26 (-56.67%)
Mutual labels:  carthage
VisualDebugger
The most elegant and easiest way to visual you data in playground
Stars: ✭ 22 (-63.33%)
Mutual labels:  carthage
CustomPermissionsDialogue
Custom Permissions Dialogue is the only permissions library that supports ALL permission request scenarios. This library handles multiple edge cases such as not enabling all permissions or permanently rejecting a permission request.
Stars: ✭ 51 (-15%)
Mutual labels:  popup
BubbleShowCase-iOS
ShowCase is a framework that provides with a view that you can display to help your users understand your App features
Stars: ✭ 36 (-40%)
Mutual labels:  carthage
HTTPDNS-OC
HTTPDNS 库 Objdctive-C 实现(使用DNSPod 、AliyunDNS、 Google ...)
Stars: ✭ 33 (-45%)
Mutual labels:  carthage
BetterMappable
Better Mappable through Property Wrappers using ObjectMapper
Stars: ✭ 26 (-56.67%)
Mutual labels:  carthage
NeumorphismTab
Custom TabBarController with Neumorphism.
Stars: ✭ 78 (+30%)
Mutual labels:  carthage

NBBottomSheet

Carthage Compatible CocoaPods Compatible Swift 5.0 Platform License

NBBottomSheet is an open-source iOS library that allows you to present a UIViewController in a bottom sheet.

Demo

Requirements

  • iOS 9.0+
  • Xcode 11+
  • Swift 5.0

Installation

CocoaPods

To integrate NBBottomSheet into your Xcode project using CocoaPods, specify it in your Podfile:

source 'https://github.com/CocoaPods/Specs.git'
platform :ios, '9.0'
use_frameworks!

target 'YOUR_TARGET_NAME' do
    pod 'NBBottomSheet', '~> 1.2'
end

Then, run the following command:

$ pod install

Carthage

To integrate NBBottomSheet into your Xcode project using Carthage, specify it in your Cartfile:

github "nicol3a/NBBottomSheet" ~> 1.1

Then, run the following command:

$ carthage update

Drag the built NBBottomSheet.framework from the Carthage build folder into the “Embedded Binaries” section in the "General" panel of the application target.

Manually

Add NBBottomSheet as a git submodule by running the following command:

$ git submodule add -b master https://github.com/nicol3a/NBBottomSheet.git

Drag the NBBottomSheet.xcodeproj file into your project and add the NBBottomSheet.framework in the "Embedded Binaries" section in the "General" panel of the application target.

Usage

Initialize an instance of NBBottomSheetController:

let bottomSheetController = NBBottomSheetController()

To display a view controller in a bottom sheet, add the following code where you want to display the bottom sheet, passing the view controller to present and the container view controller:

let viewController = AlertViewController()
bottomSheetController.present(viewController, on: self)

Note: Be sure to keep a strong reference to your instance of NBBottomSheetController for the duration of its use.

If you don’t want to use NBBottomSheetController’s default configuration, you can specify a NBBottomSheetConfiguration instance on initialization of NBBottomSheetController.

let configuration = NBBottomSheetConfiguration(animationDuration: 0.4, sheetSize: .fixed(300))
let bottomSheetController = NBBottomSheetController(configuration: configuration)

License

NBBottomSheet is available under the MIT license. See the LICENSE file for more information.

Acknowledgements

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].