Skip to content

1.0.0 - Swift Package Manager Support

Latest

Choose a tag to compare

@jakemarsh jakemarsh released this 31 Dec 19:33

Swift Package Manager Support

CoreLayout has been modernized with Swift Package Manager support and cross-platform compatibility.

New Features

  • Swift Package Manager - Primary distribution method
  • Cross-Platform - iOS, macOS, tvOS, watchOS support
  • Modern Swift - Updated for Swift 5.9+ with proper platform conditionals
  • Swift-Friendly Yoga API - Extensions for dot-syntax on Yoga enums
  • Comprehensive Tests - 34 tests covering all layout functionality

Requirements

  • iOS 15.0+ / macOS 12.0+ / tvOS 15.0+ / watchOS 8.0+
  • Swift 5.9+
  • Xcode 15+

Installation

dependencies: [
    .package(url: "https://github.com/jakemarsh/core-layout.git", from: "1.0.0")
]

What's New

  • Added Package.swift for SPM support
  • Restructured sources for SPM (Sources/CoreLayout, Sources/YogaLayout)
  • Added YogaExtensions.swift for Swift-friendly enum syntax
  • Fixed platform compatibility with #if canImport(UIKit/AppKit)
  • Updated to modern Swift APIs