Post

Replies

Boosts

Views

Activity

Reply to Playground CGContext nil
Is there for playground some memory limits or etc? Not clearly documented, but there might have been. As far as I tried your code on Xcode Playground of 12.4, it showed non nil result. The issue may be fixed in 12.4, or some other things may be affecting.
Feb ’21
Reply to Button not dismissing Onboarding Modal
I have tested your project on my iPhone 7 plus (iOS 14.3)/iPhone 12 Max (iOS 14.4), and both work as expected as I wrote in my former post. I needed to change Bundle Identifier and remove Capabilities: iCloud and Push Notification to test the app on my testing account. And I needed to Trust my testing account, each time I deleted the app. Any of such things may be affecting. So, I think your code is well, just your testing environment or something other than code may be affecting. after that, the button stopped working, if you'll believe it.  If that is an observable fact, we should think based on it. But as for now, I have no clue what's causing the issue. I recommend you, again, to create another brand-new project. Move some code from your actual project to it one by one , until you can reproduce the issue. (You may need to modify your project settings and code to make it build and run with the limited resources for each step.) That may reveal what may be affecting.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
Reply to Button not dismissing Onboarding Modal
I tried your project, (You should better create a simplified project and include all the code into your post. Not many readers will go into the links.) Notification alert appears Welcome to Meetings sheet is shown below the alert Whether I choose Allow or Don't Allow Welcome to Meetings sheet gets visible I tap Get started Sheet changes to What's New to Meetings I tap Continue Sheet dismissed, and a view with navigation title My Meetings appears Quite as expected. Is there any condition to reproduce the issue? Any specific iOS versions? Need actual device?
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
Reply to Button not dismissing Onboarding Modal
When I press the button in the modal view, it prints 123 but doesn't dismiss the modal. As far as I tried, when I press the button in the modal view, it does print 123 and does dismiss the modal. (Sorry, corrected.) Maybe something hidden in your code is affecting. Better show issue reproducible code.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21
Reply to How to handle URL Image if has non English characters SwiftUI
Thanks for the explanation and showing the result. Technically, non-ASCII characters like "ö" are not allowed in URLs and needs to be escaped using percent-encoding. (Unfortunately, some browsers do this conversion automatically and hidden from users.) You can try something like this: WebImage(url: URL(string: item.image?.addingPercentEncoding(withAllowedCharacters: .urlPathAllowed) ?? "")) Or, it would be better to set already percent-encoded string to the property image.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Feb ’21