Alexa
Alexa

Reputation: 53

How to create bottom sheet style model view controller using Swift?

I am trying to create button click to present bottom sheet viewcontroller using storyboard not code base. View controller swipe down to dismiss viewcontroller with background light dark effect.

I tried below cocoapods but I didn’t get easy way.

https://github.com/gordontucker/FittedSheets

Please, give me some ideas how to achieve this by using Storyboard?

Bottom sheet sample image

Upvotes: 3

Views: 12956

Answers (1)

Que20
Que20

Reputation: 1549

Might be too late but I juste released a Framework that does exactly what you need. https://github.com/Que20/UIDrawer

  • It is a custom UIPresentationController, it doesn't affect you view controller presenting or the modal itself.
  • It support swipping and dragging (to deploy and close).
  • It is customizable.

Hope it'll help :)

Upvotes: 5

Related Questions