|
HI! I am totally new with switft and switfui, sand also english is not my first language, so I am going quite slow... I have just finished my first challenge with proyects... I think it works properly, but i don´t know if I have done it right or i have missed important things... Also, in the tips section, it says "Finally, if you’d like to be a bit fancy with the output number you display, try calling .formatted() on it – e.g. someDouble.formatted(). This will cause iOS to format the number for printing, adding thousands separator and removing a lot of the noise from unnecessary decimal places." I don't understant what it is for and where and how I have to insert it... Could you please help me?
|
|
Kitty wonders about modifiers:
Welcome to Hacking With SwiftSlow is the way to go! Think of For example, you can think of a shoe as a foot modifier. So what does the If you attach a Here's a short example for you to enter into Xcode's playground. I encourage you to search these forums for
LocalisationYou may live in a part of the world where the thousands portion of a number is separated by a period (.) and the decimal portion is separated by a comma (,). This would be difficult to program all the variations for all the world's users. Instead, allow Swift to make these conversions for you! In your locale, you may see €1.042,01 instead of the format used in UK, USA, and Canada €1,042.01 Keep Coding |
SPONSORED Take the pain out of configuring and testing your paywalls. RevenueCat's Paywalls allow you to remotely configure your entire paywall view without any code changes or app updates.
Sponsor Hacking with Swift and reach the world's largest Swift community!
You need to create an account or log in to reply.
All interactions here are governed by our code of conduct.
Link copied to your pasteboard.