
The article explains how to use the format parameter in Text and TextField to display and accept formatted values. It covers numbers (notation, grouping, sign, decimal precision), percentages, currencies, dates (date components, intervals, relative dates, ISO 8601), temperatures, distance, file size, concatenating collections with list style, person names using PersonNameComponents, and URLs (hiding scheme, path, or domain). It also shows the difference between interpolated strings and proper formatted numbers (locale awareness), and how TextField with format automatically drops invalid characters.
Gabriel Theodoropoulos is a programmer with 20+ years of professional experience in software and application development and over 30 years of programming experience in total. He has been an iOS developer since mid 2010 and a macOS developer since 2017. Gabriel is the author of numerous programming tutorials and a creator of educational videos on YouTube. Today he focuses almost exclusively on iOS and macOS development. He occasionally implements backend solutions using PHP or Node.js primarily to support his own projects. Over the years Gabriel has developed a wide range of applications and programs for various target platforms including iOS, the web, and Windows. He has worked on projects of all sizes from small apps to large scale complex systems. Throughout his career he has learned and used nearly a dozen programming languages, but Swift has been his primary language in recent years. He holds a bachelor's degree in Software Engineering and Industrial Informatics.