Post

Replies

Boosts

Views

Activity

Reply to How to limit my numbers in Swift
I want the limit of health points of my characters to be exactly between 0 and 100.  What in your code represents health points? If my character loses health points, Where is the code that your character loses health points? if he gains health points, Where is the code that your character gains health points? Better if you continued your old thread with adding this code.
Topic: Programming Languages SubTopic: Swift Tags:
Jan ’21
Reply to How do I stop 'The compiler is unable to type-check this expression in reasonable time'
I can't because there is a character limit Thanks for moving your code into Text Attachment. But it is hard to say something sure as many undefined symbols are preventing us to estimate the actual part causing the issue. Better try breaking up the expression into distinct sub-expressions, as suggested. You can break up the definition of body, in the same way as aboutPage. Generally, this error The compiler is unable to type-check this expression... often occurs when some type-related errors are in the code. You would be able to find where that is happening. with splitting your loooong body into sub-views.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’21
Reply to How do I stop 'The compiler is unable to type-check this expression in reasonable time'
OOPer's method worked! Happy to hear that. it now doesn't display correctly... You should better start a new thread. Generally, you should not include too many topics in a single thread. (If one topic is large enough, two are too many.) And a brand-new thread would get more attention from readers who want to solve issues. Please include enough code into your new thread. (If there were no missing parts in your code -- such as Launch, Rockect, rocketApiCall, apiCall, URLimageView, etc... I could pinpoint where to fix instead of telling a general method.) If you can include some testing data, it would be better.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’21
Reply to Networking error management
I have this error when printing from line 44 of the code you send. That is the expected result when the response data is as your dataString. I don't have other setting  Then I have no clue as for now. Better re-check all the values -- url, email, password, or any other parameters if more.
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Jan ’21