반응형
Notice
Recent Posts
Recent Comments
Link
- Today
- Total
07-05 05:44
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- delegate
- Upper
- MVC
- Linux
- scheduledTimer
- SQL
- decode
- deeplearning
- Optional
- 명령어
- cocoapods
- grep
- struct
- tapply
- ios
- Python
- swiftUI
- NVL
- substr
- 딥러닝
- 시각화
- ReLU
- SWIFT
- r
- Observable
- 연산자
- rxswift
- sigmoid
- barplot
- trunc
Archives
목록Tappable (1)
iOS 개발 기록 블로그
SwiftUI Button의 Background가 클릭되지 않는 경우
예를 들어 위와 같은 화면에 버튼이 있다고 생각해보자. 기본적으로 "선택하기" 부분만 클릭이 되고 나머지 백그라운드 부분이 클릭되지 않는다. 이 경우에 아래와 같이 하면 백그라운드 영역도 클릭이 가능하게 된다. 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