본문 바로가기 메뉴 바로가기

Ekko

프로필사진
  • 글쓰기
  • 관리
  • 태그
  • 방명록
  • RSS

Ekko

검색하기 폼
  • 분류 전체보기 (55)
    • iOS (26)
    • Swift (4)
    • Algorithm (19)
      • 백준 (16)
    • 기타 개발 관련 (4)
      • Git (3)
    • 이것저것 (1)
      • 회고 (0)
  • 방명록

Custom Detent (1)
iOS) UISheetPresentationController - Custom Detents로 Sheet 높이 설정하기(WWDC2022)

기존 UISheetPresentationController에는 Detents가. medium과. large 뿐이었다. iOS16부터는 Custom Detents를 이용해 Sheet의 높이를 직접 설정해줄 수 있게 되었다. 직접 해보자. WWDC2022 What's new in UIKit을 참고했다. 높이 200인 Detent를 detents배열에 추가해 주었다. sheet.detents = [ .custom{ _ in 200.0 } ] 최대 높이를 기준으로 높이를 설정할수도있다. sheet.detents = [ .custom{ context in 0.3 * context.maximumDetentValue } ] Custom Detent에 identifier를 줘서 sheet의 다른 프로퍼티에서 사용할 수..

iOS 2022. 10. 14. 00:06
이전 1 다음
이전 다음
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
TAG
  • UICollectionView Error
  • crud
  • sheetPresentationController
  • Sheet Height
  • BOJ 17298
  • UICollectionView banner
  • swift
  • bottom sheet
  • BOJ 10866
  • BOJ 1935
  • autolayout
  • Card CollectionVIew
  • Stack
  • 1406 에디터
  • 요시푸스
  • git
  • Carousel Effect
  • ios
  • 2023 회고
  • BOJ 10808
  • BOJ 17413
  • github
  • Custom Detent
  • BOJ 10820
  • CAGradientLayer
  • BOJ 10799
  • BOJ 10809
  • NaverMaps
  • Algorithm
  • Gradient View
more
«   2025/06   »
일 월 화 수 목 금 토
1 2 3 4 5 6 7
8 9 10 11 12 13 14
15 16 17 18 19 20 21
22 23 24 25 26 27 28
29 30
글 보관함

Blog is powered by Tistory / Designed by Tistory

티스토리툴바