
정의 struct RoundedButton: View{ let color: Color let text: String let fontSize: CGFloat let icon: String? let action: () -> Void init(color: Color, text: String, fontSize: CGFloat, icon: String?, action: @escaping () -> Void){ self.color = color self.text = text self.fontSize = fontSize self.icon = icon ?? nil self.action = action } var body: some View { Button(action: { action() }){ if let icon ..

여러가지 요소를 하나의 Component로 만들기 위해선 Container(빈 박스) 기능을 하는 요소가 필요하다. UIKit에서 이런 경우엔 빈 UIVIew를 하나 올린 뒤 그 안에 Text, Image 등의 요소를 더하는 식으로 구현했다. SwiftUI에서는 주로 VStack과 HStack을 이용하는데 비슷한 기능을 하는 Group과 GroupBox도 알아보자 Group Use a group to collect multiple views into a single instance, without affecting the layout of those views, like an HStack, VStack, or Section would. After creating a group, any modifier y..
- Total
- Today
- Yesterday
- 비동기/동기
- GetX
- 아키텍쳐 패턴
- Architecture Pattern
- 코디네이터 패턴
- RX
- Bloking/Non-bloking
- programmers
- ios
- SWM
- notion
- 리액티브 프로그래밍
- 노션
- swift
- MVI
- coordinator pattern
- 소프트웨어마에스트로
- healthkit
- TestCode
- MVVM
- design pattern
- SwiftUI
- combine
- DocC
- reactive programming
- Flux
- Flutter
- MVC
- Swift Concurrency
- 프로그래머스
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |