Posts

Post not yet marked as solved
1 Replies
0 Views
Same problem :-/ Anyone know if this is a bug or an intended behaviour?
Post not yet marked as solved
1 Replies
0 Views
@fraserh I'm experiencing the same issue. Have you found any solution for this?
Post not yet marked as solved
6 Replies
0 Views
I can confirm that SwiftUI does not clean up something when view's state changes on macOS. In my app, I change view's state on each mouse move and I can see the allocated memory climbing up and up as I move the mouse around. The worst is that it's not just an issue of the memory. The app is also getting slower and slower - presumably because SwiftUI keep doing unnecessary work. Sample view: @State private var hoverX: CGFloat = 0.0 var body: some View {           Color.blue.frame(width: 50, height: 50)     .offset(x: hoverX, y: 0)      .onMouseMove { point in         hoverX = point.integral.x      } }
Post not yet marked as solved
2 Replies
0 Views
Ok, it appears that CATiledLayer behaves unexpectedly when it's scaled only in one axis. When I applied scale transform to both X and Y axis, tiles were rendered correctly. Any chance that some Apple engineer could relate to this and confirm whether this is intended?
Post not yet marked as solved
1 Replies
0 Views
Update I managed to get it to work by using kUTTypeFileURL type identifier. I then decode the URL and load the file on my own. I wonder, is this an expected behavior?