Post

Replies

Boosts

Views

Activity

Comment on Blurring Text in a sentence
To compute the x position of the substring, you can simply multiply the number of chars before by char width in the font (will give approximate value, but should be enough here) or use sizeWithAttributes. This could help: https://stackoverflow.com/questions/37475593/swift-how-do-i-find-the-positionx-y-of-a-letter-in-a-uilabel
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jun ’23
Comment on Blurring Text in a sentence
To compute the x position of the substring, you can simply multiply the number of chars before by char width in the font (will give approximate value, but should be enough here) or use sizeWithAttributes. This could help: https://stackoverflow.com/questions/37475593/swift-how-do-i-find-the-positionx-y-of-a-letter-in-a-uilabel
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on Use of 64pt and 68pt iOS App Icon Sizes
Could it be for Vision pro ?
Replies
Boosts
Views
Activity
Jun ’23
Comment on JSONEncoder issue?
Thanks for feedback. Don't forget to close the thread and good continuation.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on SwiftUI view printout on paper
You have to use UIPrint. There are many tutorials. This one may help: https://www.testdevlab.com/blog/how-to-print-from-ios-applications
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on How to enable a disenable button?
Of course it is .disabled(numberOfPress > 10)
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on Cannot use instance member within property initializer
Sometimes, between the time they prepare the demo and the time the API is published, some changes may occur…
Replies
Boosts
Views
Activity
Jun ’23
Comment on This is my code - the problem is that I made most of the app so far using the iPhone 14 Pro Max and it has the sizing of that phone so can you please help change it so that it will fit any phone no matter size. This is most of the code.
What is the difference ? Missing labels like roads numbers ? If this is it, that may be a question of map scale. Please explain.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on Too complex to compile after update to Xcode 14.3.1
Thanks for the feedback. But it would have been interesting to see if it works with Double(2), or 2.0. Just to have an explanation of the issue.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jun ’23
Comment on Super basic question: Print
Thanks for feedback and good continuation. Don't forget to mark the correct answer. That's a good practice on the forum, to keep it clean.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on Safari 16.5.2 has serious issues.
Yes indeed. But I don't know whether or not security patch also applied to 12.6.7 (as an evolution from 12.6.6)
Topic: Safari & Web SubTopic: General Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on Failable Initializer
When you mark correct answer, it should be the correct answer. Not your comment on the answer.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on Cannot convert value of type 'int' to expected argument type 'string'?
Thanks, but that's not the complete project, just the individual files. And some struct are declared in several files, so needs some time to rebuild the project. So please send it directly.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on Cannot convert value of type 'int' to expected argument type 'string'?
Just post the complete project folder in GitHub. Or leave an address where to contact you.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on Kitchen service
No, I do not see where to get the full code. What is exactly the problem with multiple orders ? They are in an array, handled in order I assume.
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’23
Comment on How to display NSPopover in the center of the screen?
Could you explain precisely what you want with n"transient behaviour" and why the proposed solution does not do it ?
Topic: Programming Languages SubTopic: Swift Tags:
Replies
Boosts
Views
Activity
Jul ’23