일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- 애니메이션
- Xcode
- 스위프트
- RxCocoa
- 리팩토링
- 리펙터링
- clean architecture
- HIG
- ribs
- ios
- rxswift
- 클린 코드
- Human interface guide
- Observable
- MVVM
- map
- swiftUI
- SWIFT
- tableView
- uitableview
- 리펙토링
- Protocol
- Clean Code
- uiscrollview
- collectionview
- Refactoring
- combine
- swift documentation
- UICollectionView
- UITextView
- Today
- Total
목록underline (2)
김종권의 iOS 앱 개발 알아가기
목차) SwiftUI의 기본 - 목차 링크 Text Text()로 사용 struct ContentView: View { var body: some View { Text("text") } } underline, strikethough, baselineOffset struct ContentView: View { var body: some View { VStack { Text("text1") Text("underline") .underline() Text("strikethrough") .strikethrough() Text("base line ofset(30)") .baselineOffset(30) } } } kerning과 tracking kerning은 문자간의 offset을 조절 tracking은 후행 ..
NSMutableAttributedString 텍스트 + 속성값을 가지고 있는 인스턴스 속성값: 텍스트 색상, 폰트, 하이퍼링크 등 속성 값을 가지고 있는 String 인스턴스 사용 방법 NSMutableAttributedString 인스턴스를 만든 후, 해당 인스턴스에 underlineStyle 속성을 추가하고, UIButton.setAttributedTitle()로 만든 인스턴스 주입 extension UIButton으로 구현 extension UIButton { // 구현 } UIButton의 title 획득 guard let title = title(for: .normal) else { return } NSMutableAttributedString 인스턴스 획득 let attributedStrin..