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 How to format numbers in a textField with math equation string?
No more crash effectively.
Topic: UI Frameworks SubTopic: UIKit Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Copying the Code from the Developer App
Thanks for feedback. But correct answer is not your acknowledge, it is the real answer…
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on Copying the Code from the Developer App
Great. Don't forget to close the thread on the correct answer.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jul ’22
Comment on UILabel issue - position
I cannot see code… Could you also post a copy of the xib, a copy of the constraints and an app screenshot.
Topic: Programming Languages SubTopic: Swift 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
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 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 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 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 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 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 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 Explanation of Guideline 4.0 - Design
OK, so you just have to convince reviewer now…
Replies
Boosts
Views
Activity
Jul ’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 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