์ผ | ์ | ํ | ์ | ๋ชฉ | ๊ธ | ํ |
---|---|---|---|---|---|---|
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 | 31 |
Tags
- RxSwift
- designpattern
- ๋ฐฑ์ค
- BFS
- raywenderlich
- MVVM
- TCA
- SwiftUI
- Xcode
- BOJ
- Kuring
- Swfit
- Flutter
- tableView
- ํจ์คํธ์บ ํผ์ค
- XCTest
- rxcocoa
- visionOS
- SnapKit
- Lv2
- ํ๋ก๊ทธ๋๋จธ์ค
- node.js
- CollectionView
- combine
- UIKit
- realm
- swift
- reactorkit
- ios
- arkit
Archives
- Today
- Total
๋ชฉ๋กdevice (1)
lgvv98
[iOS15] Device width, height in safeAreaLayoutGuide
Device width, height in safeAreaLayoutGuide โ ๋๋ฐ์ด์ค์์ width์ height๋ฅผ ๊ตฌํด๋ณด์. ์๋ ์ด๊ฑธ ์ ํ๋๋ฉด ๋ด๊ฐ ๋ค๋ฅธ ์ฑ์ ์ฌ์ฉํ๊ณ ์๋๋ฐ, ๊ฐ์๊ธฐ ๋๋ฌด ๊ถ๊ธํ์ ๋๋ฐ์ด์ค์ ํฌ๊ธฐ๋ UIScreen.main.bounds.widht UIScreen.main.bounds.height ์์ ์ฝ๋๋ก ๊ตฌํ ์ ์๋ค. ๋ค๋ง, safeArea์ ๋ํ ๋ถ๋ถ์ ๊ณ ๋ คํ์ง ์์์ ๋ด๊ฐ ์ํ๋ UI๊ฐ ๋ํ๋์ง ์์ ์ ์๋ค. ํนํ collectionView์ฌ์ฉ์์ ๋์ฑ ๊ทธ๋ฌ๋๋ฐ ์๋์ ๊ฐ์ด ์ฝ๋๋ฅผ ์์ฑํด์ฃผ๋ฉด safeArea๋ฅผ ๊ณ ๋ คํ ์ ์๋ค. func collectionView(_ collectionView: UICollectionView, layout collectionViewL..
โ ๏ธ deprecated โ ๏ธ/Calendar
2022. 5. 2. 02:37