Swiftpack.co - mihaelamj/MMJUtils as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by mihaelamj.
mihaelamj/MMJUtils 0.7.0
Utils I use on every project
⭐️ 1
🕓 2 years ago
iOS macOS
.package(url: "https://github.com/mihaelamj/MMJUtils.git", from: "0.7.0")

MMJUtils

Utility code I use on nearly every project.

CollectionUtil

  • Adds a safe subscript when accessing colcction elements.
  • Returns nil if the index is out of bounds.

FloatingPointUtil

  • Adds a helper method to round to the nearest value, with rounding rules

CGRectUtil

  • Generating random CGRects
  • Centering CGRects

GridView

  • Drawing a GridView with Core Graphics for testing purposes

GridViewSwiftUI

  • Drawing the same grid view, but this time with SwiftUI.
  • Using Path and GeometryReader

GitHub

link
Stars: 1
Last commit: 2 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics