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
- RxCocoa
- swiftUI
- uiscrollview
- ribs
- 스위프트
- clean architecture
- ios
- map
- Observable
- tableView
- UITextView
- 클린 코드
- uitableview
- rxswift
- Clean Code
- Protocol
- Xcode
- MVVM
- Refactoring
- 애니메이션
- collectionview
- UICollectionView
- HIG
- 리팩토링
- Human interface guide
- 리펙토링
- 리펙터링
- combine
- SWIFT
- swift documentation
Archives
- Today
- Total
목록2022/08/05 (1)
김종권의 iOS 앱 개발 알아가기
[iOS - swiftUI] Button, ButtonStyle 사용 방법
목차) SwiftUI의 기본 - 목차 링크 Button 개념 Button안에 텍스트를 적고 closure에 액션을 기입 Button("MyButton") { print("did tap") } action을 앞에서 받고 뒤에 Text와 같은 컴포넌트를 넣어서 표출도 가능 색상은 systemBlue가 디폴트로 설정 Button(action: { print("tap button!") }) { Text("MyButton") } action에 클로저로 넣어도 되지만, 일반 func 함수를 넣어도 가능 struct ContentView: View { var body: some View { Button(action: self.didTapButton) { //
iOS 기본 (SwiftUI)
2022. 8. 5. 22:08