UISheetPresentationController iOS 15 Swift #1

Опубликовано: 10 Июнь 2021
на канале: iOS Shiga
1,250
11

A presentation controller that manages the appearance and behavior of a sheet.

UISheetPresentationController lets you present your view controller as a sheet. Before you present your view controller, configure its sheet presentation controller with the behavior and appearance you want for your sheet.
Sheet presentation controllers specify a sheet's size based on a detent, a height where a sheet naturally rests. Detents allow a sheet to resize from one edge of its fully expanded frame while the other three edges remain fixed. You specify the detents that a sheet supports using detents, and monitor its most recently selected detent using selectedDetentIdentifier.