fix: compile errors — frame API + sheet binding for let hlsRecorder
This commit is contained in:
parent
4c38b06860
commit
01116180d1
@ -583,9 +583,14 @@ struct BricksAppView: View {
|
||||
bridge.showToastMsg(error.localizedDescription)
|
||||
}
|
||||
}
|
||||
.sheet(item: $bridge.hlsRecorder.pendingExportURL) { url in
|
||||
ActivityShareSheet(url: url) {
|
||||
bridge.hlsRecorder.pendingExportURL = nil
|
||||
.sheet(isPresented: Binding<Bool>(
|
||||
get: { bridge.hlsRecorder.pendingExportURL != nil },
|
||||
set: { if !$0 { bridge.hlsRecorder.pendingExportURL = nil } }
|
||||
)) {
|
||||
if let url = bridge.hlsRecorder.pendingExportURL {
|
||||
ActivityShareSheet(url: url) {
|
||||
bridge.hlsRecorder.pendingExportURL = nil
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
@ -707,7 +712,7 @@ struct ControlToolbar: View {
|
||||
Text(bridge.currentTrackLabel)
|
||||
.font(.system(size: 11, design: .monospaced))
|
||||
.foregroundColor(.white)
|
||||
.frame(minWidth: 50, height: 28)
|
||||
.frame(height: 28)
|
||||
.padding(.horizontal, 4)
|
||||
.background(Color.white.opacity(0.15))
|
||||
.cornerRadius(4)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user