https://github.com/filiplazov/namecomponentssampleapp
Simple iOS app made in SwiftUI that demonstrates the PersonNameComponents and PersonNameComponentsFormatter APIs in a visual manner.
https://github.com/filiplazov/namecomponentssampleapp
foundation ios swift swiftui
Last synced: 2 months ago
JSON representation
Simple iOS app made in SwiftUI that demonstrates the PersonNameComponents and PersonNameComponentsFormatter APIs in a visual manner.
- Host: GitHub
- URL: https://github.com/filiplazov/namecomponentssampleapp
- Owner: filiplazov
- License: mit
- Created: 2020-07-18T20:08:25.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2020-07-18T20:11:59.000Z (almost 5 years ago)
- Last Synced: 2025-01-11T13:46:50.665Z (4 months ago)
- Topics: foundation, ios, swift, swiftui
- Language: Swift
- Homepage:
- Size: 5.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
- License: LICENSE
Awesome Lists containing this project
README
# Name Components Sample App
A sample app that demonstrates the Foundation's `PersonNameComponents` and `PersonNameComponentsFormatter` APIs. You can either enter your name and let the APIs try to determine the correct name components or enter each component individually. It uses the formatter to display the various styles. The sample app is build completely in SwiftUI.
Inspired by Paul Hudson's Hacking Withs Swift + [Handling names correctly](https://www.hackingwithswift.com/plus/making-the-most-of-foundation/handling-names-correctly).
![]()
## Requirements
Xcode 12 Beta (beta 2 at the time this was uploaded)
## License
Name Components Sample App is available under the MIT license. See the [LICENSE](LICENSE) file for more info.