This package is a port of John Gruber's Title Case to Swift. David Gouch's To Title Case was used as a starting point, but the project has quickly evolved into its own.
Test cases are a mix of those from the original project and those of To Title Case.
Should work with any platform supported by Swift 5.7. In my own testing, it works across all current Apple platforms as well as Fedora Linux.
let titleCased = "this is a string that needs title case".toTitleCase()
> "This Is a String That Needs Title Case"