I have a similar problem. Isn't there a solution?
struct ContentView: View {
@State private var text: String = ""
var body: some View {
VStack {
Text(text)
.padding()
TextEditor(text: $text)
.frame(width: 300, height: 200)
.padding()
Button(action: {
print(text)
}, label: {
Text("Done")
})
.keyboardShortcut(.defaultAction)
.padding()
}
}
}
Post
Replies
Boosts
Views
Activity
https://developer.apple.com/forums/thread/691415
The same issue is registered. It seems that it has not been resolved yet. :(
This bug seems to have been resolved in Xcode 13.2 beta version. When you exit Xcode 13.1 and run it on Xcode 13.2 beta, the swift-frontend thread temporarily increases and then the memory is released.
However, when Xcode 13.1 version is running, the same problem occurs even if it runs at 13.2 beta. Please run only Xcode 13.2 beta and test it.
I also found the same phenomenon. You cannot submit macOS applications in Xcode 13.2. I hope Apple responds quickly.
There is a memory issue when distributed in Xcode 13.1 version.
https://developer.apple.com/forums/thread/691415
Therefore, in order to deploy the macOS version, it may create a more dangerous situation to deploy using Xcode 13.1. It's a dilemma.
It's not completely resolved on macOS. If you apply .preferredColorScheme(nil) while set to a specific theme, the background color will change, but text and other colors will remain as the last theme color.
After clicking another window, it changes normally.