Post

Replies

Boosts

Views

Activity

Reply to delete green (+) icon when onInsert
example code struct ContentView: View {   @State private var dragging: Ramen?   @State private var ramens = [Ramen(name: "ramen", id: 0),          Ramen(name: "ramen2", id: 1),          Ramen(name: "ramen3", id: 2)]   var body: some View {     List {       ForEach(ramens) { ramen in         Image(ramen.name)           .onDrag {             self.dragging = ramen             return NSItemProvider(object: String(ramen.id) as NSString)           }       }       .onInsert(of: [.text], perform: insert)     }   }   private func insert(index: Int, _: [NSItemProvider]) {     ...   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Oct ’21
Reply to existential any error in MLModel class
@moto_coreml_apple thank you for replying! I'll turn off auto-generation and write it myself until Apple supports this.
Topic: Machine Learning & AI SubTopic: Core ML Tags:
Replies
Boosts
Views
Activity
Dec ’24
Reply to AVFoundation's ultra-wide-angle camera behaves differently than the default apple camera
Thank you for your reply! There is also a difference in the captured image.
Topic: Media Technologies SubTopic: Audio Tags:
Replies
Boosts
Views
Activity
Oct ’22
Reply to test of asynchronous by XCTestExpectation
supplement: repository.delete(id: "2") is doing realm delete transaction. repository.object is getting realm object.
Replies
Boosts
Views
Activity
Apr ’22
Reply to message isn's displayed when crash by assertNoFailure
As far as I can tell, the only way to display the message is to use fatalError.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’21
Reply to want to make external display disable
I quit the simulator once and started it again, and it fixed the problem. The cause is unknown.
Replies
Boosts
Views
Activity
Nov ’21
Reply to want to make external display disable
image
Replies
Boosts
Views
Activity
Nov ’21
Reply to delete green (+) icon when onInsert
I couldn't figure out how to change it with onInsert, but I did find out that DropProposal is involved. By implementing it with onDrop, I was able to successfully turn it off.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’21
Reply to delete green (+) icon when onInsert
when dragging
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to delete green (+) icon when onInsert
example code struct ContentView: View {   @State private var dragging: Ramen?   @State private var ramens = [Ramen(name: "ramen", id: 0),          Ramen(name: "ramen2", id: 1),          Ramen(name: "ramen3", id: 2)]   var body: some View {     List {       ForEach(ramens) { ramen in         Image(ramen.name)           .onDrag {             self.dragging = ramen             return NSItemProvider(object: String(ramen.id) as NSString)           }       }       .onInsert(of: [.text], perform: insert)     }   }   private func insert(index: Int, _: [NSItemProvider]) {     ...   } }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Reply to SwiftUI Pull to Refresh Support
in iOS15, refreshable is introduced!
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’21