Post

Replies

Boosts

Views

Activity

Reply to swift-frontend memory usage
It's very bad. I found that if the data read by geometryreader is captured by a func but not used, this problem will occur. Memory occupies 30G quickly, and the hard disk reads and writes a lot. Even if Xcode is turned off, it still doesn't help. You must to click to turn off by yourself!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Dec ’21
Reply to Ive created a login view but as soon as I leave that view all the textfield and password field is empty.
Use UserDefaults or @AppStorage
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Reply to How can i save Angle and [Color] to UserDefaults ?
Maybe you need to save the key data of color and angle, and then read and instantiate it from userdefalts when necessary, such as double of angle.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to swift-frontend memory usage
It's very bad. I found that if the data read by geometryreader is captured by a func but not used, this problem will occur. Memory occupies 30G quickly, and the hard disk reads and writes a lot. Even if Xcode is turned off, it still doesn't help. You must to click to turn off by yourself!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21