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 | 29 | 30 |
Tags
- uiscrollview
- tableView
- Human interface guide
- Clean Code
- 클린 코드
- 스위프트
- UITextView
- 리펙토링
- rxswift
- Observable
- Refactoring
- UICollectionView
- swift documentation
- collectionview
- SWIFT
- Xcode
- map
- clean architecture
- ribs
- 리팩토링
- swiftUI
- Protocol
- RxCocoa
- ios
- 애니메이션
- MVVM
- uitableview
- combine
- HIG
- 리펙터링
Archives
- Today
- Total
목록maxXEdge (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swift] CGRect의 divided(atDistance:from:) 메소드 (CGRect slice 방법)
사각형을 자르고 싶은 경우, divided(atDistance:from:) 사용 from의 좌표로 부터 adDistance 떨어진 것으로 사각형 slice 하나의 사각형(CGRect)을 두 개의 사각형(CGRect)로 slice하는 코드 Rect객체에서 divided(atDistance:from:)을 사용 // .minXEdge 의미: x좌표의 시작점을 기준으로 30의 길이로 slice let slices = originRect.divided(atDistance: 30.0, from: .minXEdge) let slicedRect = slices.slice let remainderRect = slices.remainder sliceView.frame = slices.slice remainderView.f..
iOS 기본 (swift)
2021. 8. 30. 23:41