Post

Replies

Boosts

Views

Activity

Reply to swift-frontend memory usage
For anyone else experiencing this issue, i found a workaround. Use your source control to find the specific part of your code that causes the issue. Then try to look if there is a small mistake in your code. If not, try putting your code on another location (helped for me for some SwiftUI code). i noticed that it looks like the compiler gets stuck on a code mistake, or something like that. I had this issue with part of my code which had no errors at all. Just moving it did the job for me. Keep in mind to keep your Activity Monitor open and keep an eye on the two processes that can build up the memory.
Dec ’21
Reply to FocusState SwiftUI not working
I’m having a simular issue. I have a form, and @FocusState is also not working for me. When I read the value of the focusstate before and after setting the focusstate, its null in both cases. I also thought it was related to the form, but I tried to change it to a VStack, but it was also not working.
Jun ’21
Reply to IntentDefinition file can't be found by a Swift file from my Widget extension
I managed to find a solution, I deleted the question on SO because of the downvotes. But if anyone else encounters this issue, this is what I did: Go to the Build Settings of your widget and intent extension. In both the extensions search for "Intent Class Generation Language" under the "Intent Definition Compiler - Code Generation" section. Then change it from "Automatic" to "Swift". Still thanks to the people who tried to help. I hope I can help some people out with this.
Oct ’20