feat: 点击预览区域继续上传视频
This commit is contained in:
parent
45b8d211af
commit
b7b093866b
@ -302,6 +302,7 @@ struct MainUploadArea: View {
|
|||||||
.frame(height: 50)
|
.frame(height: 50)
|
||||||
// 主显示区域
|
// 主显示区域
|
||||||
if let mediaToDisplay = selectedMedia ?? uploadManager.selectedMedia.first {
|
if let mediaToDisplay = selectedMedia ?? uploadManager.selectedMedia.first {
|
||||||
|
Button(action: { showMediaPicker = true }) {
|
||||||
MediaPreview(media: mediaToDisplay)
|
MediaPreview(media: mediaToDisplay)
|
||||||
.id(mediaToDisplay.id)
|
.id(mediaToDisplay.id)
|
||||||
.frame(width: 225, height: 225)
|
.frame(width: 225, height: 225)
|
||||||
@ -310,9 +311,9 @@ struct MainUploadArea: View {
|
|||||||
.stroke(Color.themePrimary, lineWidth: 5)
|
.stroke(Color.themePrimary, lineWidth: 5)
|
||||||
)
|
)
|
||||||
.cornerRadius(16)
|
.cornerRadius(16)
|
||||||
.shadow(radius: 4)
|
|
||||||
.padding(.horizontal)
|
.padding(.horizontal)
|
||||||
.transition(.opacity)
|
.transition(.opacity)
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
UploadPromptView(showMediaPicker: $showMediaPicker)
|
UploadPromptView(showMediaPicker: $showMediaPicker)
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user