크리 채널 커뮤니티 등록 - 썸네일 선택시 보이지 않던 버그 수정
This commit is contained in:
@@ -19,6 +19,8 @@ struct CreatorCommunityWriteView: View {
|
||||
@State private var isShowRecordingVoiceView = false
|
||||
@State private var fileName: String = "녹음"
|
||||
|
||||
private let imagePreviewSize: CGFloat = 110
|
||||
|
||||
let onSuccess: () -> Void
|
||||
|
||||
var body: some View {
|
||||
@@ -45,7 +47,7 @@ struct CreatorCommunityWriteView: View {
|
||||
AnimatedImage(data: selectedImage)
|
||||
.resizable()
|
||||
.scaledToFill()
|
||||
.frame(width: 300)
|
||||
.frame(width: imagePreviewSize, height: imagePreviewSize)
|
||||
.cornerRadius(8)
|
||||
.clipped()
|
||||
} else {
|
||||
@@ -53,7 +55,7 @@ struct CreatorCommunityWriteView: View {
|
||||
.resizable()
|
||||
.scaledToFit()
|
||||
.padding(13.3)
|
||||
.frame(width: 107, height: 107)
|
||||
.frame(width: imagePreviewSize, height: imagePreviewSize)
|
||||
.background(Color.bg)
|
||||
.cornerRadius(8)
|
||||
.clipped()
|
||||
@@ -65,7 +67,7 @@ struct CreatorCommunityWriteView: View {
|
||||
.cornerRadius(30)
|
||||
.offset(x: 15, y: 0)
|
||||
}
|
||||
.frame(alignment: .bottomTrailing)
|
||||
.frame(width: imagePreviewSize, height: imagePreviewSize, alignment: .bottomTrailing)
|
||||
}
|
||||
.onChange(of: selectedItem) { newItem in
|
||||
Task {
|
||||
|
||||
Reference in New Issue
Block a user