반응형
Notice
Recent Posts
Recent Comments
Link
- Today
- Total
04-22 13:59
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- MVC
- Observable
- deeplearning
- substr
- 연산자
- rest api
- Python
- swiftUI
- 시각화
- 오블완
- Linux
- struct
- ios
- r
- sigmoid
- Optional
- 명령어
- 티스토리챌린지
- 딥러닝
- decode
- Request
- SQL
- cocoapods
- HTTP
- tapply
- barplot
- scheduledTimer
- ReLU
- rxswift
- SWIFT
Archives
목록Tappable (1)
iOS 개발 기록 블로그

예를 들어 위와 같은 화면에 버튼이 있다고 생각해보자. 기본적으로 "선택하기" 부분만 클릭이 되고 나머지 백그라운드 부분이 클릭되지 않는다. 이 경우에 아래와 같이 하면 백그라운드 영역도 클릭이 가능하게 된다. struct ChooseButtonView: View { var body: some View { Button(action: { print("Tapped the Button!") }, label: { Text("선택하기") .frame(maxWidth: .infinity) .padding() .background(Color.accentColor) .foregroundColor(.white) .cornerRadius(12) .padding(.horizontal, 20) }) } } Button을 타이..
iOS/SwiftUI
2023. 7. 31. 09:20