A Swift Package containing useful functions and extensions for Swift developers
Code in this repo should build and run on any platform that runs Swift. Some may require different versions of Swift.
- CGFloat
- function to round to provided number of decimal places
- Collection
- safe subscript for fetching elements by index without asserting for out of bounds
- convenience function to determine if the collection has contents
- safe subscript for fetching elements by index without asserting for out of bounds
- Double
- function to round to provided number of decimal places
- Optional
- convenience functions to query content availability
- String
- functions to make fetching grapheme clusters more easily, at the expense of performance.
- convenience function to determine if the string has contents