Model improvements

This commit is contained in:
Arkadiusz Fal
2022-09-02 01:05:31 +02:00
parent 7b48041165
commit f607e6e276
23 changed files with 194 additions and 270 deletions

View File

@@ -26,6 +26,8 @@ struct ControlsBar: View {
var detailsToggleFullScreen = false
var titleLineLimit = 2
private let controlsOverlayModel = ControlOverlaysModel.shared
var body: some View {
HStack(spacing: 0) {
detailsButton
@@ -63,7 +65,7 @@ struct ControlsBar: View {
}
} else if detailsToggleFullScreen {
Button {
model.controls.presentingControlsOverlay = false
controlsOverlayModel.presenting = false
model.controls.presentingControls = false
withAnimation {
fullScreen.toggle()