Posts

Post not yet marked as solved
2 Replies
Did you ever find a solution to this?
Post marked as solved
3 Replies
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
5 Replies
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
5 Replies
@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
2 Replies
To get it working I had to add &#9;<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
1 Replies
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
10 Replies
Ok, I got past this error by reinstalling with the Apple Configurator, instructions here: https://developer.apple.com/download/universal/
Post marked as solved
3 Replies
Is it possible to show us a drawing/screenshot of what you want? - maybe some code too?
Post not yet marked as solved
4 Replies
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/