Rajat Gupta

1pod

ContentSheet

ContentSheet enables presenting any content in an ActionSheet. The content provider has to follow 'ContentSheetContentProtocol'. Extensions for UIViewController and UINavigationController have been added in the pod itself so that comes right out of the box. It is also possible to have the content expand or collapse based on collapsed height and expanded height. If there is a scrollview and you'd like to expand or collapse the content seemlessly on scroll, that is also possible. You could customize the background and whether the sheet should be dismissed on tapping outside content or not. Callbacks are given for all the events as well. Both 'ContentSheetContentProtocol' and 'ContentSheetDelegate' get callbacks for different events.

Checkout the example in the code.

License: Apache 2

  • Swift