Bottom Sheet in Swift

Badarinath Venkatnarayansetty
1 min readSep 2, 2019

Adding a dismissible view controller from bottom of the screen with a notch in 3 simple steps.

bottomSheet.gif
  1. Construct SheetViewController which contains ContainerViewController and NotchViewController and set up constraints

2. Add a blur effect view UIVisualEffectView

3. Animate with help of heightConstraint ( positive value ) and notchBottomConstraint ( negative value )

Complete source code is present in Github

Happy Coding..

--

--

Badarinath Venkatnarayansetty

Staff Engineer @ Intuit | Building Mobile App experiences , Generative AI , Data