반응형
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
- @State
- dismiss
- nonisolated
- RxCocoa
- RFC1738/1808
- @EnvironmentObject
- Operater
- RxSwift
- nestjs
- Creating Operators
- Bug
- URL(string:)
- Operators
- init?
- NullObject
- operator
- typeorm
- @Environment
- swift6
- ios14
- @Binding
- init
- IOS
- subject
- graphql
- NavigationLink
- Xcode
- vim
- SwiftUI
- SWIFT
Archives
- Today
- Total
목록Sheet (1)
Tunko Development Diary

출처 : https://stackoverflow.com/questions/63745084/how-can-i-make-a-background-color-with-opacity-on-a-sheet-view SwiftUI .sheet를 이용한 View에서는 화면을 전부 채우지 않는 경우 배경이 투명하게 나타납니다. 의도적으로 이를 투명하게 해주기 위해서 View를 포함하고 있는 부모뷰의 백그라운드를 .clear로 설정합니다. 이를 SwiftUI에서 접근하기 위해서 UIViewRepresentable 를 사용하여 UIKit에 있는 UIView를 임시 생성해 줍니다. struct ClearBackgroundView: UIViewRepresentable { func makeUIView(context: Context..
Development/SwiftUI
2023. 4. 5. 11:00