Swiftpack.co -  Package - richardpiazza/Swift2D
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
richardpiazza/Swift2D
Swift library for working in two-dimensional coordinate systems.
.package(url: "https://github.com/richardpiazza/Swift2D.git", from: "1.1.0")

Swift2D

Swift library for working in two-dimensional coordinate systems.

Twitter: @richardpiazza

Features

This library provides structs for Point, Size, and Rect based on the swift standard library. No Foundation or CoreGraphics imports are required.

Usage

Swift2D is distributed using the Swift Package Manager. To install it into a project, add it as a dependency within your Package.swift manifest:

let package = Package(
    ...
    dependencies: [
        .package(url: "https://github.com/richardpiazza/Swift2D.git", from: "1.1.0")
    ],
    ...
)

Then import the Swift2D packages wherever you'd like to use it:

import Swift2D

GitHub

link
Stars: 0
Last commit: 2 weeks ago

Release Notes

Swift2D 1.1.0
19 weeks ago

Added convenience initializers to Rect, Size, and Point that take CoreGraphics counterparts as parameters. The instance parameters that provided these have been deprecated as a result.

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