Swiftpack.co - sampettersson/Placement as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by sampettersson.
sampettersson/Placement 1.5.0
Layout protocol & ViewThatFits backport for iOS 14-15
⭐️ 68
🕓 4 weeks ago
iOS
.package(url: "https://github.com/sampettersson/Placement.git", from: "1.5.0")

A polyfill for the new Layout protocol from iOS 16. Supports iOS 14 and above, on iOS 16 Placement favors the built in Layout protocol and uses that instead of Placements own layouter.

Documentation

You can find the documentation at placement.sampettersson.com

Installation

Swift Package Manager

https://github.com/sampettersson/Placement.git

Carthage

github "sampettersson/Placement" >= VERSION

Cocoa Pods

platform :ios, '9.0'
use_frameworks!

target 'Your App Target' do
  pod 'Placement', '~> VERSION'
end

GitHub

link
Stars: 68
Last commit: 4 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

1.5.0
4 weeks ago

This release contains the following fixes:

  • #4 Add correct defaults to correctly match Apples Layout protocol thanks to @Jaron-Lowe
  • #8 Attach PlacementLayoutValueKeys on iOS 16
  • #9 Always call updateCache even though subviews didn't change

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