Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Half modal comparision in iOS15

darquro
September 17, 2021

Half modal comparision in iOS15

iOSDC Japan 2021 スポンサーセッションで発表したスライドです。

darquro

September 17, 2021
Tweet

More Decks by darquro

Other Decks in Technology

Transcript

  1. 3 Table of Contents 1. Half modal implementation in iOS14

    or earlier (UIPresentationController) 2. Explain customizable sheet appeared from iOS15 (UISheetPresentationController) 3. Comparison each implementation https://developer.apple.com/videos/play/wwdc2021/10 063/
  2. 9 Half modal implementation in iOS14 or earlier R Hack

    https://commerce- engineer.rakuten.careers/entry/tech/0024 GitHub https://github.com/Fablic/ios_semi_modal_sample
  3. 10 Explain customizable sheet appeared from iOS15 Customize and resize

    sheets in UIKit https://developer.apple.com/videos/play/wwdc2021/1 0063/
  4. 15 Explain customizable sheet appeared from iOS15 Customize and resize

    sheets in UIKit https://developer.apple.com/videos/play/wwdc2021/1 0063/
  5. 19 1. Only 2 sizes are defined and cannot be

    customized UIPresentationController UISheetPresentationController ⚠
  6. 20 2. It be able to touch the parent screen

    depend on the configuration ⚠
  7. 21 Summary • UISheetPresentationController provides half size sheet. If you

    want height flexibility, choose UIPresentationController. • UISheetPresentationController is able to touch the parent screen. • Given the constraints, you can quickly implement half- modal.