Just to add, it does seem that user folders are blocked (such as "/User/name/Desktop)", but it will happily let me put "/" as the path and print out files and folders.
Post
Replies
Boosts
Views
Activity
From App Sandbox Design Guide - https://developer.apple.com/library/archive/documentation/Security/Conceptual/AppSandboxDesignGuide/AppSandboxInDepth/AppSandboxInDepth.html, it says the app has access to the following locations
Temporary directories, command-line tool directories, and specific world-readable locations. A sandboxed app has varying degrees of access to files in certain other well-defined locations
So I'm guessing the access I'm seeing is encapsulated by that?
Companion StackOverflow post - https://stackoverflow.com/questions/66318511/why-is-my-macos-app-bypassing-sandboxed-file-access?noredirect=1#comment117253417_66318511
I've found myself in this same situation.
I've tried uninstalling with SIP turned off. I've also tried deactivationRequestForExtension
The logs I'm getting for systextd (xxxx is placeholder for my real extension) are
language
request contains authorizationref
extension xxxx advancing from activated_waiting_to_upgrade-terminating_for_uninstall
state transition not allowed, crashing...
sysextd restarted
At this point I don't know what to do? I can't activate or deactivate my extension...
Mark's answer is correct for, but just to make it clearer.
Like the question, I was using
ZStack{
// Child content
}
.frame(width: 200, height: 500, alignment: .topLeading)
But this doesn't work, presumably because the frame is adding a parent view to the ZStack, and the alignment is not being added directly to the ZStack itself.
By taking the following approach of passing the alignment directly to the ZStack at initialisation, I was able to get the expected results with all children position top left.
ZStack(alignment: .topLeading) {
// Child content
}
.frame(width: 200, height: 500, alignment: .topLeading)
Thanks for pointing this out, I missed it completely.. Will still be interested to hear why the positioning results change based on where I click in the Rectangle (i.e why repeated clicks in one spat can have .zero translation, whilst repeated clicks in others don't)
(Accidentally posted this as an answer and can't delete).
After some more testing, it's not actually just StateObject.
If I add this to the view, and then try to print it in the action, the lag is present.
@State var test:Bool = false
Also looking for something like this myself. I'm trying to attain the same kind of right hand collapsible sidebar as is used in Xcode.