Post

Replies

Boosts

Views

Activity

Comment on How we can use alert menu before delete list items in SwiftUI?
@Claude31, I am app like that but it is not work, ` Button(action: {   showingAlert = true }) { Text("delete") }   .alert(isPresented:$showingAlert) {                     Alert(                       title: Text("Are you sure you want to delete this?"),                       message: Text("There is no undo"),                       primaryButton: .destructive(Text("Delete")) {                      self.delete(item: data)                       },                       secondaryButton: .cancel()                     )                   }`
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’22
Comment on Why list items not able to delete in SwiftUI?
@Claude31, I understand now very well tnx so much
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Is it possible to use custom emoji in SwiftUI?
@Claude31, it will help me?, tnx so much let me look
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Is it possible to use custom emoji in SwiftUI?
@Claude31, it is not help me, I need to use emoji in buttoni when I click the emoji button, it can send my friend in chat, is it possible?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How we can delete all list items in SwiftUI?
@Claude31, I do it by self.datas.removeAll(), it is work now, tnx so much :)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How we can delete all list items in SwiftUI?
@Claude31, tnx so much u help me alots, appreciated ur support tnx so much
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How we can use alert menu before delete list items in SwiftUI?
@Claude31, I am app like that but it is not work, ` Button(action: {   showingAlert = true }) { Text("delete") }   .alert(isPresented:$showingAlert) {                     Alert(                       title: Text("Are you sure you want to delete this?"),                       message: Text("There is no undo"),                       primaryButton: .destructive(Text("Delete")) {                      self.delete(item: data)                       },                       secondaryButton: .cancel()                     )                   }`
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How we can use alert menu before delete list items in SwiftUI?
@Claude31, how I will apply to my project, because I am still do not understand, how to apply
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How we can use alert menu before delete list items in SwiftUI?
@Claude31, it is delete list item, but delete randomly, when I meet with this error, when I used alert, it throw this error, I guess problem is start with .alert function
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How can I use multiple `.alert` dialog in SwiftUI?
@Claude31, it is not same question, I mean .alert not work for two button, it is just work for one, for example it delete all row, but for singel row it is not work, the problem is due to I have two .aler dialog, I have to use it with switch case I guess, but how?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on How can I use multiple `.alert` dialog in SwiftUI?
@Claude31, it example code I found on internet, I guess I have to write my code according to this example, but I do not know how?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on How can I use multiple `.alert` dialog in SwiftUI?
@Claude31, how I will use   self.delete(item: data),      and   self.datas.removeAll() inside of the here ` .alert(item: $info, content: { info in // 5 Alert(title: Text(info.title), message: Text(info.message)) })`
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on How can I use multiple `.alert` dialog in SwiftUI?
@Claude31, inside of the .context menu .alert not work I have to write outside, but in outside just one .alert work
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on How can I use multiple `.alert` dialog in SwiftUI?
@Claude31, is there any way?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Why it throw ab error as a "Cannot find 'state' in scope" in SwiftUI project?
@Claude31, I put  @ObservedObject var state: AppState, but it is not work
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Why it is throw an error as "Return from initializer without initializing all stored properties" in SwiftUI?
@robnotyou, I know it, but how we will solve it?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22