3

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

Spidy
  • 1,137
  • 3
  • 28
  • 48
Alexa
  • 53
  • 1
  • 2
  • 7
  • were you having trouble with the `cocoapod` or is it something else? – Dennis W. Feb 08 '19 at 00:56
  • @DennisW. I am expecting without cocoapod. Could you please give me some idea...how to achieve this by storyboard.. – Alexa Feb 08 '19 at 02:04
  • I think `SO` is the wrong place for "How do I do make this" question. You should look for a tutorial such as [view controller presentation transitions](https://www.raywenderlich.com/359-ios-animation-tutorial-custom-view-controller-presentation-transitions) or [similar tutorial](http://www.swiftkickmobile.com/building-better-app-animations-swift-uiviewpropertyanimator/) – Dennis W. Feb 08 '19 at 02:32
  • @DennisW. both links are not helpful. Actually I am looking storyboard with two view controller. – Alexa Feb 08 '19 at 02:37
  • Sorry they didn't help you, try searching for a tutorial on `UIPresentationController` and `UIViewControllerAnimatedTransitioning` – Dennis W. Feb 08 '19 at 02:49
  • Does this answer your question? [How can I mimic the bottom sheet from the Maps app?](https://stackoverflow.com/questions/37967555/how-can-i-mimic-the-bottom-sheet-from-the-maps-app) – pkamb Jun 08 '21 at 06:58

1 Answers1

4

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 :)

Que20
  • 1,469
  • 2
  • 13
  • 27