Swift2D

2.0.0

Swift library for working in two-dimensional coordinate systems.
richardpiazza/Swift2D

What's New

Swift2D 2.0.0 (Double Double)

2021-08-15T20:44:42Z

This release removes previously deprecated initializers as well as replacing the underlying Float values with Double.
SE-0307 will offer interchangeable CGFloat/Double usages in Swift 5.5.

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

Description

  • Swift Tools 5.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Mon Nov 07 2022 22:55:32 GMT-0500 (GMT-05:00)