parent
0de6111487
commit
cba7a1c3ba
|
@ -356,7 +356,7 @@ struct ContentCreateView: View {
|
||||||
.foregroundColor(Color(hex: "eeeeee"))
|
.foregroundColor(Color(hex: "eeeeee"))
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
|
||||||
Text("미리듣기 시간을 직접 설정하지 않으면 콘텐츠 앞부분 30초가 자동으로 설정됩니다. 미리듣기의 시간제한은 없습니다.")
|
Text("미리듣기 시간을 직접 설정하지 않으면 콘텐츠 앞부분 15초가 자동으로 설정됩니다. 미리듣기의 시간제한은 없습니다.")
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
.foregroundColor(Color(hex: "777777"))
|
.foregroundColor(Color(hex: "777777"))
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
@ -387,7 +387,7 @@ struct ContentCreateView: View {
|
||||||
.foregroundColor(Color(hex: "d2d2d2"))
|
.foregroundColor(Color(hex: "d2d2d2"))
|
||||||
.frame(maxWidth: .infinity, alignment: .leading)
|
.frame(maxWidth: .infinity, alignment: .leading)
|
||||||
|
|
||||||
TextField("00:00:30", text: $viewModel.previewEndTime)
|
TextField("00:00:15", text: $viewModel.previewEndTime)
|
||||||
.autocapitalization(.none)
|
.autocapitalization(.none)
|
||||||
.disableAutocorrection(true)
|
.disableAutocorrection(true)
|
||||||
.font(.custom(Font.bold.rawValue, size: 14.6))
|
.font(.custom(Font.bold.rawValue, size: 14.6))
|
||||||
|
|
|
@ -306,8 +306,8 @@ final class ContentCreateViewModel: ObservableObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
let timeDifference = timeDifference(startTime: previewStartTime, endTime: previewEndTime)
|
let timeDifference = timeDifference(startTime: previewStartTime, endTime: previewEndTime)
|
||||||
if timeDifference < 30.0 {
|
if timeDifference < 15.0 {
|
||||||
errorMessage = "미리 듣기의 최소 시간은 30초 입니다"
|
errorMessage = "미리 듣기의 최소 시간은 15초 입니다"
|
||||||
isShowPopup = true
|
isShowPopup = true
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue