From 6ddf0f29fbea4c64e6b447988f44a0cf6b9087a1 Mon Sep 17 00:00:00 2001 From: Maurice Parker Date: Tue, 30 Jun 2020 20:38:55 -0500 Subject: [PATCH] Comment out SceneStorage since it crashes on launch on macOS --- Multiplatform/Shared/Sidebar/SidebarView.swift | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/Multiplatform/Shared/Sidebar/SidebarView.swift b/Multiplatform/Shared/Sidebar/SidebarView.swift index 5497a18d5..5f85e8242 100644 --- a/Multiplatform/Shared/Sidebar/SidebarView.swift +++ b/Multiplatform/Shared/Sidebar/SidebarView.swift @@ -11,7 +11,8 @@ import Account struct SidebarView: View { - @SceneStorage("expandedContainers") private var expandedContainerData = Data() + // I had to comment out SceneStorage because it blows up if used on macOS +// @SceneStorage("expandedContainers") private var expandedContainerData = Data() @StateObject private var expandedContainers = SidebarExpandedContainers() @EnvironmentObject private var sidebarModel: SidebarModel @@ -41,11 +42,11 @@ struct SidebarView: View { } } } - .onAppear { - expandedContainers.data = expandedContainerData - } - .onReceive(expandedContainers.objectDidChange) { - expandedContainerData = expandedContainers.data - } +// .onAppear { +// expandedContainers.data = expandedContainerData +// } +// .onReceive(expandedContainers.objectDidChange) { +// expandedContainerData = expandedContainers.data +// } } }