UISheetPresentationControllerCustomDetent
Custom detents in UISheetPresentationController
Install / Use
/learn @iMinichrispy/UISheetPresentationControllerCustomDetentREADME
UISheetPresentationControllerCustomDetent
Adds support for specifying custom detents in UISheetPresentationController. Note: This solution relies on a private API, which may break in future iOS releases.
import UISheetPresentationControllerCustomDetent
let viewController = UIViewController()
if let sheetPresentationController = viewController.sheetPresentationController {
sheetPresentationController.detents = [ .custom(70.0), .custom(200.0), .medium(), .large() ]
sheetPresentationController.selectedDetentIdentifier = .custom(200.0)
}
present(viewController, animated: true, completion: nil)
License
UISheetPresentationControllerCustomDetent is licensed under the MIT License. See the LICENSE file for more info.
Related Skills
node-connect
352.0kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
111.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
352.0kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
352.0kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
Languages
Security Score
Audited on Aug 21, 2025
