Skip to content

Commit

Permalink
iOS 16 + (#8)
Browse files Browse the repository at this point in the history
  • Loading branch information
muukii authored Oct 4, 2024
1 parent c9761a5 commit afac7fa
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 16 deletions.
9 changes: 0 additions & 9 deletions Package.resolved
Original file line number Diff line number Diff line change
@@ -1,14 +1,5 @@
{
"pins" : [
{
"identity" : "placement",
"kind" : "remoteSourceControl",
"location" : "https://github.com/sampettersson/Placement",
"state" : {
"revision" : "2dc510fb7d36dd49dc3857c95d69653cc3836a40",
"version" : "1.4.1"
}
},
{
"identity" : "swift-snapshot-testing",
"kind" : "remoteSourceControl",
Expand Down
4 changes: 1 addition & 3 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import PackageDescription
let package = Package(
name: "WrapLayout",
platforms: [
.iOS(.v14)
.iOS(.v16)
],
products: [
// Products define the executables and libraries a package produces, and make them visible to other packages.
Expand All @@ -18,7 +18,6 @@ let package = Package(
dependencies: [
// Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"),
.package(url: "https://github.com/sampettersson/Placement", exact: "1.4.1"),
.package(url: "https://github.com/pointfreeco/swift-snapshot-testing", from: "1.1.0"),
],
targets: [
Expand All @@ -27,7 +26,6 @@ let package = Package(
.target(
name: "WrapLayout",
dependencies: [
"Placement"
]
),
.testTarget(
Expand Down
7 changes: 3 additions & 4 deletions Sources/WrapLayout/WrapLayout.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import Placement
import SwiftUI

public struct WrapLayout: PlacementLayout {
public struct WrapLayout: Layout {

public struct CacheStorage {

Expand Down Expand Up @@ -54,7 +53,7 @@ public struct WrapLayout: PlacementLayout {
}

public func sizeThatFits(
proposal: PlacementProposedViewSize,
proposal: ProposedViewSize,
subviews: Subviews,
cache: inout CacheStorage
) -> CGSize {
Expand Down Expand Up @@ -117,7 +116,7 @@ public struct WrapLayout: PlacementLayout {

public func placeSubviews(
in bounds: CGRect,
proposal: PlacementProposedViewSize,
proposal: ProposedViewSize,
subviews: Subviews,
cache: inout CacheStorage
) {
Expand Down

0 comments on commit afac7fa

Please sign in to comment.