일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- rxswift
- Git
- 개발자
- Session
- MacOS
- view
- mac
- SwiftUI
- Code
- JPA
- Swift
- geofencing
- iOS16
- error
- 한글
- UIButton
- IOS
- Realm
- 웹뷰
- FLUTTER
- Xcode
- 이미지
- window
- darkmode
- Firebase
- github
- Archive
- Apple
- appstore
- Notification
- Today
- Total
목록UIImage (2)
EEYatHo 앱 깎는 이야기

UIImageView 이미지 다운로드 구현 Placeholder Image 지원 Image 넣는 부분은 main queue로 작업 외부 라이브러리 없이 URLSesstion dataTask 사용 extension UIImageView { func imageDown(urlStr: String, placeholderImage: UIImage? = nil) { func _setImage(image: UIImage?) { DispatchQueue.main.async { [weak self] in self?.image = image } } // 캐싱 체크 if let image = ImageCacheManager.shared.getImage(urlStr) { _setImage(image: image) return..
UIColor -> UIImage UIGraphicsBeginImageContext(CGSize(width: 1, height: 1)) UIGraphicsGetCurrentContext()!.setFillColor(uicolor.cgColor) UIGraphicsGetCurrentContext()!.fill(CGRect(x: 0, y: 0, width: 1, height: 1)) let image = UIGraphicsGetImageFromCurrentImageContext() UIGraphicsEndImageContext() UIImage + UIImage -> DynamicUIImage ( 다크모드, 라이트모드에 따라 런타임에 바뀌는 Image ) lightImage?.imageAsset?.regis..