Post

Replies

Boosts

Views

Activity

Comment on SwiftUI struct var declaration problem
Yes, that would be a simple way. But the question was asking for 2 specific types. So it depends on what Trialenzo intends to do exactly. The test would not be on nil value, but on the type of use to get the expected value in result: if useAsInt { result = Int(value) ?? 0 } else { result = value }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jul ’22
Comment on my xr wont let me do anything
Great. But when you find a solution to your own question, it is good practice to explain what it is. That's the spirit of the forum. https://developer.apple.com/forums/thread/706527 And please DUSMA (don't use so many acronyms 😉). have a good day.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on POST method does not register user
Thanks. Could you show all the messages you get in the log, in the exact sequence ? "OK", "success", …
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on Access Objects In View Controller From Window Controller
That's just a reformulation of QuinceyMorris answer.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on Error Type 'PhotoCarouselTableViewCell' has no member 'identifier'
What type of misspell ? In the identifier ? But your code could not work, what is your correct code ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on Keyboard text selection bug (TextEdit, plain text, macOS 12.4)
I tested on MacOS 12.4 and shift up does work in the scenario you described…
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jun ’22
Comment on Some Animal and local scope of underlying type
I will report here when I get an answer.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Explanation of Guideline 4.0 - Design
OK, so you just have to convince reviewer now…
Replies
Boosts
Views
Activity
Jul ’22
Comment on Changing UISwitch place
It is very easy to add a picture. Use the pin button at the bottom right of the message area and select ”add picture”.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on How to set the first object in the array as default selected in Country Picker
I cannot understand how all pieces fit together, so unable to say. Where is selectedCountryCode initialized ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on I would avoid Xcode 14 (seems to have corrupted my system)
@ lmDeveloper1 Thanks for the info about Twitter. Would have been great for Xcode developer to post it here directly… Happily, you were there.
Replies
Boosts
Views
Activity
Jul ’22
Comment on getting the real widt of an UIView in ios
Surprising that you need to subclass. Have you a small code sample so that I can test ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Xcode 14.0 beta - How do I comment out multiple selected lines?
Yes, that's it (for me, Xcode menu item is Preferences, not Settings).
Topic: Community SubTopic: Apple Developers Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on What does Arg[0] = Dead in a UICollectionViewDataSource crash mean?
Thanks. could you explain how instances of CollectionViewDataSource are created and used ?
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on SwiftUI struct var declaration problem
Yes, that would be a simple way. But the question was asking for 2 specific types. So it depends on what Trialenzo intends to do exactly. The test would not be on nil value, but on the type of use to get the expected value in result: if useAsInt { result = Int(value) ?? 0 } else { result = value }
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Max App Size
Thanks for feedback. Just note that the correct answer to mark is not your ack, but the answer itself. have a good day.
Topic: App & System Services SubTopic: Core OS Tags:
Replies
Boosts
Views
Activity
Jul ’22