Post

Replies

Boosts

Views

Activity

Comment on Cannot bind to local UDP socket - address already in use
I am on macOS, doing point-to-point communication. I believe I found the error. This site gave a list of ports that may be blocked. I saw that X11 is using port 6000 and I recently installed X11 for some docker work I was doing. The port was no longer in use after uninstalling X11. It seems that the port was being reserved, rather than being open. Should I have used a tool other than lsof?
Topic: App & System Services SubTopic: General Tags:
Feb ’22
Comment on Why does custom Binding not update UI
Even though this does not answer the question about why custom binding does not update the UI it seems that the only way to reliably update the UI is to using the @Published property wrapper in an ObservableObject. It will use combine to notify the UI about the change.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Nov ’22
Comment on Disable Line Wrapping in UITextView wrapped in UIViewRepresentable
Thanks but, sorry, that only partially solves the problem. The text box no longer wraps but it does not follow the curser as you type.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’21
Comment on Cannot bind to local UDP socket - address already in use
I am on macOS, doing point-to-point communication. I believe I found the error. This site gave a list of ports that may be blocked. I saw that X11 is using port 6000 and I recently installed X11 for some docker work I was doing. The port was no longer in use after uninstalling X11. It seems that the port was being reserved, rather than being open. Should I have used a tool other than lsof?
Topic: App & System Services SubTopic: General Tags:
Replies
Boosts
Views
Activity
Feb ’22
Comment on Why does custom Binding not update UI
Even though this does not answer the question about why custom binding does not update the UI it seems that the only way to reliably update the UI is to using the @Published property wrapper in an ObservableObject. It will use combine to notify the UI about the change.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on How to preserve state in reference types in swiftUI
No, I did not. If I understand correctly, that will save it for the object but there is no way to link it to the scene - or am I missing something? Can I use UserDefaults and link it to the scene?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Nov ’22
Comment on SwiftUI Table with TextField becomes unresponsive as entries increase
Sorry, did not manage to find a solution.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Mar ’24
Comment on Using TextField:text:selection crashes on macOS
Sorry, did not get notification for your reply and only saw it now. I can confirm this is fixed in 15.2.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Dec ’24
Comment on SwiftUI TextField corrupts selection when inserting utf16
Hi Claude31, Have you been able to reproduce my problem with more info given below? Is it possible that the error is only in a certain version of macOS, or am I doing something else wrong?
Topic: UI Frameworks SubTopic: SwiftUI
Replies
Boosts
Views
Activity
Jun ’25