Post

Replies

Boosts

Views

Activity

Reply to SwiftUI on macOS: double tap on list item
Use simultaneously gesture detection. Sample below :) @State var selectedItem: URL? List(items, selection: $selectedItem) { url in                 let selectGesture = TapGesture()                     .onEnded {                         selectedItem = url                     }                 let openGesture = TapGesture(count: 2)                     .onEnded {                         print("double clicked")                     }                 ItemRow(url)                     .gesture(openGesture.simultaneously(with: selectGesture)) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Mar ’22
Reply to C++ crash on iOS 13 built with Xcode 15 beta 7
Mentioned as fixed in Xcode 15.1 https://developer.apple.com/documentation/xcode-release-notes/xcode-15_1-release-notes Fixed: Binaries using symbols with a weak definition crash at runtime on iOS 14/macOS 12 or older. This impacts primarily C++ projects due to their extensive use of weak symbols. (114813650)
Replies
Boosts
Views
Activity
Oct ’23
Reply to Xcode 15, how to uncheck "Connect via network" for physical device?
Caching symbols take about 25-30 minutes with iPad Pro attached over USB-C. (So process started over WiFi then I attached cable but nothing changed, still very slow). My 300 Mb project (with 4-5k asset files) uploads to device in 1-2 minutes with cable attached. Debugging and running apps on a device become insanely slow! Feedback filed FB13211128
Replies
Boosts
Views
Activity
Sep ’23
Reply to SwiftUI on macOS: double tap on list item
Use simultaneously gesture detection. Sample below :) @State var selectedItem: URL? List(items, selection: $selectedItem) { url in                 let selectGesture = TapGesture()                     .onEnded {                         selectedItem = url                     }                 let openGesture = TapGesture(count: 2)                     .onEnded {                         print("double clicked")                     }                 ItemRow(url)                     .gesture(openGesture.simultaneously(with: selectGesture)) }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22