Post not yet marked as solved
Did you ever find a solution to this?
I've been playing with this and managed to get it to work on a single domain.
I noticed most of the files had a hash at the end of them, so I merged them all down into a single .docarchive file.
Of course, this may break in the future, but for now it works
# Delete existing .doccarchive
rm -rf templates/AllProjects.doccarchive
# Create a working folder
mkdir templates/working_dir
# Copy most files, excluding the index and metadata.json files to the working directory
rsync -a --exclude 'index.html' --exclude 'metadata.json' templates/ProjectA.doccarchive/* templates/working_dir
rsync -a --exclude 'index.html' --exclude 'metadata.json' templates/ProjectB.doccarchive/* templates/working_dir
# Copy across the index.html file from each Archive, but give it a new name when copying
rsync templates/ProjectA.doccarchive/index.html templates/test/projectA.html
rsync templates/ProjectB.doccarchive/index.html templates/test/projectB.html
# Create a new .doccarchive folder
mv templates/working_dir templates/AllProjects.doccarchive
You can then host this on your server and point to /documentation/ProjectA or /documentation/ProjectB.
There is one current drawback I can see, the table of contents isn't unique.
Post not yet marked as solved
I have something like this setup for instant changes, store the stylesheet as a state variable, and then when you want to change stylesheet, listen for a change.
You can then use @Environment(\.stylesheet) var stylesheet and style your views as you see fit
@main
struct MyApp: App {
@State var stylesheet = StylesheetLoader.load(file: "MyStylesheet", in: Bundle.main)
var body: some Scene {
WindowGroup {
NavigationView {
HomeView()
.environment(\.stylesheet, stylesheet)
.onReceive(stylesheetPublisher, perform: { newStylesheet in
stylesheet = newStylesheet
})
}
}
}
Post not yet marked as solved
@karim, Sorry, I haven't tried it with a navigation bar, I've had lots of issues with appearance and navigation bars, I've given up trying to get it working
Post not yet marked as solved
To get it working I had to add
	<key>NSLocalNetworkUsageDescription</key>
<string>Network usage is required for macOS/iOS communication</string>
<key>NSBonjourServices</key>
<array>
<string>_myitem._tcp</string>
</array>
Post not yet marked as solved
Ok, I found a twitter post and they said it was because the items were selectable, so my code became:
func toolbarSelectableItemIdentifiers(_ toolbar: NSToolbar) -> [NSToolbarItem.Identifier] {
//return self.toolbarDefaultItemIdentifiers(toolbar) // old
return [] //new
}
Post not yet marked as solved
Ok, I got past this error by reinstalling with the Apple Configurator, instructions here: https://developer.apple.com/download/universal/
Is it possible to show us a drawing/screenshot of what you want? - maybe some code too?
Post not yet marked as solved
Could the `extent` property of `ARWorldMap` be useful here: https://developer.apple.com/documentation/arkit/arworldmap/2968211-extent
Post not yet marked as solved
Just curious, do you have plane detection turned on? I don't have a device to test on, but this video seems to suggest it has higher detail with it turned off, at around 5:20 https://developer.apple.com/videos/play/tech-talks/609/