일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- Codable
- 오브젝트
- 알고리즘
- UserDefaults
- @state
- SwiftUI
- 가상 메모리
- 상호배제
- forEach
- deadlock
- decode
- 비동기
- Apple Developer Academy
- 동시성
- async
- 파일 시스템
- 운영체제
- 데드락
- IOS
- struct
- 동기화
- 프로세스 스케줄링
- Swift
- 인프런
- COLOR
- Algorithm
- core data
- 100 days of SwiftUI
- 앨런
- Linked List
- Today
- Total
목록UIKit 기초 (28)
기어가더라도 제대로
도입 상황UIBottomSheetPresentater 를 사용하려고 했으나, iOS 15부터 지원이 된다고 하여, 다른 대안을 찾아보던 중 FloatingPanel 이라는 레포지토리가 유명하여 사용법을 익히기로 함도입하는 패키지SnapKit: UI 구현 편의Then: UI 구현 편의FloatingPanel: Bottom Sheet를 사용하기 위함사용법1. 뷰컨트롤러 안에 Botton Sheet를 항상 띄워 놓기ParentViewController: 모달을 가지고 있을 배경 뷰컨트롤러ChildViewController: 모달뷰 안에 구현될 뷰컨트롤러// ParentViewController.swiftclass ParentViewController: UIViewController { var fpc: F..
let appearance = UINavigationBarAppearance() appearance.configureWithOpaqueBackground() appearance.backgroundColor = UIColor.nephritis // 원하는 컬러 appearance.largeTitleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white] appearance.titleTextAttributes = [NSAttributedString.Key.foregroundColor: UIColor.white] UIBarButtonItem.appearance().tintColor = .white // UIBarButtonItem Col..
func scrollViewDidScroll(_ scrollView: UIScrollView) { guard let vc = vc else { return } let safeAreaTop = vc.view.safeAreaInsets.top // let magicalSafeAreaTop: CGFloat = safeAreaTop + (vc?.navigationController?.navigationBar.frame.height ?? 0) // let offset: CGFloat = magicalSafeAreaTop + scrollView.contentOffset.y // let alpha: CGFloat = 1 - (offset / magicalSafeAreaTop) let offset: CGFloat = ..