일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- collectionview
- 리펙토링
- Clean Code
- Human interface guide
- ios
- 리펙터링
- MVVM
- combine
- 클린 코드
- SWIFT
- Xcode
- uiscrollview
- RxCocoa
- 리팩토링
- map
- 애니메이션
- Observable
- UICollectionView
- uitableview
- Protocol
- clean architecture
- swift documentation
- 스위프트
- swiftUI
- Refactoring
- ribs
- tableView
- UITextView
- HIG
- rxswift
- Today
- Total
목록Path (3)
김종권의 iOS 앱 개발 알아가기
목차) SwiftUI의 기본 - 목차 링크 Path 사용 방법 2D 선과 면을 그릴때 사용 move(to:) 메소드를 통해 시작점을 정하고, addLine(to:)를 통해 선을 그림 struct ContentView: View { var body: some View { Path { path in path.move(to: CGPoint(x: 100, y: 100)) path.addLine(to: CGPoint(x: 100, y: 200)) path.addLine(to: CGPoint(x: 200, y: 200)) } } } 사각형 그리기 struct ContentView: View { var body: some View { Path { path in path.move(to: CGPoint(x: 100, y..
목차) SwiftUI의 기본 - 목차 링크 Shape 2D 모양의 뷰를 의미하는 프로토콜 (Circle, Capsule, Ellipse, ... 등) Shape 프로토콜 형태 path(in:)->Path: shape의 형태를 Path로 리턴 role: 모양을 채우는 스타일을 정의하며, 결합 모양(composite shape)과 같은 것을 만들때 이 프로퍼티를 재정의하여 사용 default implementation이 존재 - ShapeRole.fill이 있고 stroke와 separator가 있는 타입 @available(iOS 13.0, macOS 10.15, tvOS 13.0, watchOS 6.0, *) public protocol Shape : Animatable, View { func path(..
URI vs URL 개념 URI(Uniform Resource Identifier): 특정 리소스 식별자 URL(Uniform Resource Location): 특정 리소스 위치 URI 방법 중 하나가 URL 위 그림에서 1번은 특정 리소스의 식별자 자체를 의미하므로 URI, 2번은 파일의 위치를 가리키므로 URL swift에서 URL을 사용하는 예 이때 리소스가 HTML인 경우 - URLSession let defaultSession = URLSession(configuration: .default) guard let url = URL(string: "\(resource)") else { print("URL is nil") return } // Request let request = URLReques..