Post

Replies

Boosts

Views

Activity

Comment on Binding<String>, set, get?
Thanks. I'm sorry if I have not explicitly stated what I exactly need. I only need to return a resulting string after removing all invalid characters. So I want to immediately return "Sd" if I type "Sd#." (period not included)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
May ’22
Comment on Using Combine-Future to Fetch Server Data
Yes. You are quite attentive. That solves the problem. Thanks a lot.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Dec ’21
Comment on Publishers.CombineLatest in SwiftUI
That's exactly what I'm talking about. I've asked Google about "SwiftUI Publishers.CombineLatest and figured out I had to use ObservableObject after going through a few dozen websites. I don't think I could figure it out on my own. Thanks a lot.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Picker with Unexpected Results
Thanks a lot. That solves the index issue. But the simulator still starts with no value for the second Picker, though.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Picker with Unexpected Results
Actually, the index issue is not resolved.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jan ’22
Comment on Where and How to Create FileManager as a Singleton?
Thanks. I haver never mentioned the MVVM architecture, though.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Using Subclassed UIViewController
Thanks. Where are you calling setup - in BaseViewController's required init?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on How to Update a UILabel Object with MainActor
Thanks. Are you telling me to just use DispatchQueue.main.async, then?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Getting an Updated Value Through @EnvironmentObject
Thanks. I've realized that as well.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’22
Comment on Deleting a View Instance with the Tap of a Button
That's very kind of you. Thanks a lot. Well, if I remove '@Binding var id: UUID,' I get an error over id ($0.id == id). Do you know what I should do?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Deleting a View Instance with the Tap of a Button
If I change @Binding to @State var id = UUID(), then the app says id (at id: item.id) is only available in iOS 15.0 or newer.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on TextField Binding
Thanks. But that's no. I get an error.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on TextField Binding
Thanks. I don' know about that. It could work if I change let name: String into var name: String in the model.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Horizontally-Aligned TextField Wrap?
I am afraid that is not going to work out. It should be something similar to one of the solutions mentioned in the URL above.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Apr ’22
Comment on Binding<String>, set, get?
I see what you mean. Thanks. Do you know how I fix it such that I only get alphabetic letters and numbers shown in the text field?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’22
Comment on Binding<String>, set, get?
Thanks. I'm sorry if I have not explicitly stated what I exactly need. I only need to return a resulting string after removing all invalid characters. So I want to immediately return "Sd" if I type "Sd#." (period not included)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
May ’22