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 | 31 |
Tags
- task cancel
- 타임라인 포맷팅
- identifiable
- swift dashed line
- UIKit
- reactorkit
- swift concurrency
- swift 백준
- SWIFT
- custom navigation bar
- BFS
- swift custom ui
- claen architecture
- custombottomsheet
- task cancellation
- coordinator
- traits
- button configuration
- domain data
- custom ui
- 버튼 피드백
- rxdatasources
- DP
- scene delegate
- uikit toast
- swift 점선
- RxSwift
- swift navigationcontroller
- Tuist
- swift bottomsheet
Archives
- Today
- Total
목록swift custom ui (1)
김경록의 앱 개발 여정

이번에 다룰 커스텀 UI는 위와 같은 스타일입니다.단순한 버튼처럼 보이지만, 자세히 보면 테두리가 점선으로 되어 있는 걸 알 수 있습니다.UIKit에서 기본 제공하는 borderStyle 옵션은 다음과 같습니다:.none.line.bezel.roundedRect하지만 이 중 어떤 것도 점선 테두리는 지원하지 않죠.(제가 모르는걸 수도..?ㅎㅎ..)물론 UIView를 하나 덧씌워서 해결할 수 있을까도 고민했지만,문제는 단순한 overlay가 아니라 ‘점선’ 그 자체였습니다.결국 선택지는 하나.CAShapeLayer와 UIBezierPath를 이용해 직접 그리는 방식으로 가야 했습니다.이번 포스팅에서는 실전 예제와 함께,점선 테두리를 가진 UIButton을 만드는 방법을 정리해 보겠습니다.🧱 기본 버튼 스..
Trouble Shooting
2025. 4. 16. 15:22