일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 리팩토링
- Protocol
- 리펙토링
- Human interface guide
- clean architecture
- HIG
- uiscrollview
- combine
- ios
- swift documentation
- UITextView
- Refactoring
- 클린 코드
- RxCocoa
- rxswift
- swiftUI
- Observable
- Xcode
- Clean Code
- MVVM
- ribs
- 애니메이션
- UICollectionView
- map
- uitableview
- tableView
- 리펙터링
- collectionview
- 스위프트
- SWIFT
- Today
- Total
목록공유하기 (2)
김종권의 iOS 앱 개발 알아가기
UIVeiwControllerRepresentable UIKit의 ViewController 타입을 SwiftUI의 View 타입으로 변경하여 사용할 수 있는 기능 UIViewControllerRepresentable 프로토콜을 준수하는 구조체를 만들어서 사용 // UIViewControllerRepresentable 프로토콜 public protocol UIViewControllerRepresentable : View where Self.Body == Never { associatedtype UIViewControllerType : UIViewController func makeUIViewController(context: Self.Context) -> Self.UIViewControllerType f..
View를 이미지로 변환 & 공유하기 View를 UIImage로 변환 extension UIView { func transfromToImage() -> UIImage? { UIGraphicsBeginImageContextWithOptions(bounds.size, isOpaque, 0.0) defer { UIGraphicsEndImageContext() } if let context = UIGraphicsGetCurrentContext() { layer.render(in: context) return UIGraphicsGetImageFromCurrentImageContext() } return nil } } 이미지 공유하기 let vc = UIActivityViewController(activityIte..