Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- IOS
- NotificationCenter
- Animation
- Refresh
- apns
- ScrollView
- mvvm
- singleton
- error
- http
- array
- Git
- PushNotification
- list
- 고차함수
- self
- 글또
- struct
- SWIFT
- viewlifecycle
- segue
- calendar
- Switch
- escaping
- 화면전환
- uikit
- Observer
- CoreImage
- SWIFTUI
- class
Archives
- Today
- Total
목록DarkMode (1)
seong_hye, the developer
Swift) DarkMode 활용하기(ColorScheme)
📘 DarkModeSwift에서는 iOS 13이상에서는 기본적으로 시스템 다크모드에 따라 UI가 자동으로 반응함시스템 색상을 사용하면 라이트/다크 모드에 따라 색상이 변경됨시스템 색상라이트 모드다크 모드.systemBackground흰색검정.label검정흰색.secondaryLabel회색연회색.systemGray중간 회색중간 회색 (어두움) ➡️시스템 색상 적용 방법Text("자동 색상 대응") .background(Color(.background)) .foregroundColor(Color(.primary)) 🔹 ColorSchemeSwiftUI에서 현재의 색상 모드 ( = 다크모드 / 라이트모드)를 나타내는 열거형(enum)다크 모드 대응 UI를 만들 떄 핵심적으로 사용되는 환경 값 ✅ Co..
IOS/SwiftUI
2022. 11. 3.