Post

Replies

Boosts

Views

Activity

Adding a drag, magnification and rotation sensors blocks the sensors
Hi, I tried every combinations of these three sensors but unfortunately with no luck. Whenever the rotation sensor activates, no more events are produced. This is particularly true when running the app on a M1 as an iPad app. Did anyone encounter the same issue and find a workaround ? The code: struct ContentView: View {     var body: some View {         Rectangle ().foregroundColor(.blue)             .gesture (                 RotationGesture ()                     .onChanged { angle in print ("Rotate changed; \(angle)") }                     .onEnded { scale in print ("Rotate ended") }                 )             .simultaneousGesture(DragGesture(minimumDistance: 0 )                 .onChanged { value in print ("Drag changed") }                 .onEnded { value in print ("Drag ended") }             )             .simultaneousGesture( MagnificationGesture (minimumScaleDelta: 0.01)                 .onChanged { scale in print ("Pinch changed; \(scale)") }                 .onEnded { scale in print ("Pinch ended") }             )     } }```
0
0
579
Dec ’22
'Float16' is unavailable in macOS when in swift package
Hello, I wrote a package with Float16 inside. When I compile a macos (13.x) app that includes this package, the compiler complains for unavailable Float16. However, If I compile the same code app with the code directly included (i.e. not in a package), everything is OK. It looks like the package is compiled for a macOS target < V11 despite the manifest specifies v13 Does anyone knows how to tell the SPM to use a specific version or as a workaround for tis issue ?
2
0
1.8k
Aug ’23
Adding a drag, magnification and rotation sensors blocks the sensors
Hi, I tried every combinations of these three sensors but unfortunately with no luck. Whenever the rotation sensor activates, no more events are produced. This is particularly true when running the app on a M1 as an iPad app. Did anyone encounter the same issue and find a workaround ? The code: struct ContentView: View {     var body: some View {         Rectangle ().foregroundColor(.blue)             .gesture (                 RotationGesture ()                     .onChanged { angle in print ("Rotate changed; \(angle)") }                     .onEnded { scale in print ("Rotate ended") }                 )             .simultaneousGesture(DragGesture(minimumDistance: 0 )                 .onChanged { value in print ("Drag changed") }                 .onEnded { value in print ("Drag ended") }             )             .simultaneousGesture( MagnificationGesture (minimumScaleDelta: 0.01)                 .onChanged { scale in print ("Pinch changed; \(scale)") }                 .onEnded { scale in print ("Pinch ended") }             )     } }```
Replies
0
Boosts
0
Views
579
Activity
Dec ’22
Xcode 15 beta 5 crashes on creating a file
Hi, When I try to create a new file (ex: Command+N), Xcode displays the popup to select the file type and its name. It crashes when selecting the "create" button. Th file is actually created and can be added after restarting Xcode. (everything was fine with former betas) Anyone experiencing the same issue ?
Replies
9
Boosts
14
Views
2.3k
Activity
Aug ’23
'Float16' is unavailable in macOS when in swift package
Hello, I wrote a package with Float16 inside. When I compile a macos (13.x) app that includes this package, the compiler complains for unavailable Float16. However, If I compile the same code app with the code directly included (i.e. not in a package), everything is OK. It looks like the package is compiled for a macOS target < V11 despite the manifest specifies v13 Does anyone knows how to tell the SPM to use a specific version or as a workaround for tis issue ?
Replies
2
Boosts
0
Views
1.8k
Activity
Aug ’23