Skip to content

kevinbhayes/swiftlets

Repository files navigation

Swiftlets

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.

Contents

Extensions

  • 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
  • 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

About

A Swift Package containing useful functions and extensions for Swift developers

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages