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 |
Tags
- Security as a Service
- app intents
- pipelines
- 동형 암호
- BindableObject
- Data Flow Through SwiftUI
- SwiftUI
- apache
- URLSessionConfiguration
- ObObjective c
- #colorLiteral
- error outputting keys and certificates
- AI
- VirtualBox
- ObservableObject
- HTTP
- colorLiteral
- EnvironmentObject
- 앱 인텐트
- MAC
- Homomorphic Encryption
- 애플인텔리전스
- URLSession
- IOS
- Xcode
- swift
- apple intelligence
- 정보관리기술사
- provisioning file path
- php
Archives
- Today
- Total
목록colorLiteral (1)
Project Jo
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/3ROfW/btqGZHrPnwt/K0efDWN0zk0HZWG4fAkE30/img.png)
코드 구현중 RGB 로 색상을 넣을 경우가 있다. 하지만, 코드상으로 작성 되어 있기 때문에 앱을 실행하지 않고서는 정확한 색상값을 볼 수 없다. 이때 colorLiteral 를 사용하면, 코드상에서 직접 색상을 볼수 있고, 선택하여 GUI 환경에서 색상을 편집 가능하다. 아래와 같이 컬러값을 설정하면 Xcode 가 눈에 보이게 색상을 넣어준다. #colorLiteral(red: 0.8078431487, green: 0.02745098062, blue: 0.3333333433, alpha: 1) Swift 에서 사용하는 컬러값으로 설정하려면 다음과 같이 사용해야 한다. struct ChildTextView: View { var body: some View { Text("Hello, World!") .fo..
Developer/Swift
2020. 8. 20. 21:00