According to eskimo's said - https://developer.apple.com/forums/thread/134202, Release Version has -systemextension suffix and Debug Version not have -systemextension suffix
Post
Replies
Boosts
Views
Activity
hi meaton:
Thank you for your reply.
I have found other error messages in the system log.
It is the value of NEMachServiceName that causes the load to fail, and it must be prefixed by the value in app Groups
hi Uddalak,
I got the same problem, do you have any progress?
.toolbar(removing: .sidebarToggle) ?
i found a way by myself
import SwiftUI
@main
struct ThreeSideViewerApp: App {
var body: some Scene {
WindowGroup {
ContentView()
}
.windowToolbarStyle(.unifiedCompact)
}
}
struct ContentView: View {
@State var show: NavigationSplitViewVisibility = .all
var body: some View {
NavigationSplitView(columnVisibility: $show)
{
Text("SideBar")
.toolbar(removing: .sidebarToggle) // remove default add
.toolbar {
ToolbarItem {
// add my self
Button(action: {
// use animeatino to toggle
withAnimation {
if show == .all {
show = .detailOnly
} else {
show = .all
}
}
},
label: {
// set large
Image(systemName: "sidebar.leading").imageScale(.large)
})
}
}
}
detail: {
Text("detail")
}
}
}