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
- 리펙터링
- Observable
- Xcode
- 리팩토링
- Protocol
- clean architecture
- tableView
- ribs
- uitableview
- swift documentation
- SWIFT
- Refactoring
- 애니메이션
- UITextView
- MVVM
- swiftUI
- ios
- uiscrollview
- Human interface guide
- collectionview
- RxCocoa
- rxswift
- Clean Code
- combine
- map
- 클린 코드
- UICollectionView
- 리펙토링
- HIG
- 스위프트
Archives
- Today
- Total
목록asImage (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] UIView를 UIImage로 변환 방법, UIView to UIImage (asImage)
UIView에 extension으로 asImage()추가 UIGraphicsImageRenderer(bounds:)의미: Core Graphics 지원 이미지를 만들기 위한 그래픽 렌더러 UIView의 layer.render(in:)에서 렌더러 context를 넣으면 기존 UIView가 UIImage로 변환 extension UIView { func asImage() -> UIImage { let renderer = UIGraphicsImageRenderer(bounds: bounds) return renderer.image { rendererContext in layer.render(in: rendererContext.cgContext) } } } image처럼 사용 class ViewControlle..
iOS 응용 (swift)
2021. 7. 30. 22:21