Skip to content

Commit 094f0bb

Browse files
authored
Merge pull request #60 from RougeWare/feature/56-Compiler-error-SwiftUI-previews_v3
Applied fix for #56 from StackOverflow
2 parents 02013c4 + 0d9c3d1 commit 094f0bb

File tree

2 files changed

+9
-8
lines changed

2 files changed

+9
-8
lines changed

Package.swift

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ import PackageDescription
55

66
let package = Package(
77
name: "RectangleTools",
8+
9+
platforms: [
10+
.macOS(.v10_15),
11+
.iOS(.v13),
12+
.tvOS(.v13),
13+
.watchOS(.v6),
14+
],
15+
816
products: [
917
// Products define the executables and libraries produced by a package, and make them visible to other packages.
1018
.library(
@@ -13,7 +21,7 @@ let package = Package(
1321
],
1422
dependencies: [
1523
// Dependencies declare other packages that this package depends on.
16-
.package(url: "https://github.com/RougeWare/Swift-MultiplicativeArithmetic.git", from: "1.0.0"),
24+
.package(url: "https://github.com/RougeWare/Swift-MultiplicativeArithmetic.git", from: "1.0.0"),
1725
],
1826
targets: [
1927
// Targets are the basic building blocks of a package. A target can define a module or a test suite.

Sources/RectangleTools/Default Conformances/EdgeInsets + FourSided + SwiftUI.swift

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
// Created by Ben Leggiero on 2021-05-05.
66
//
77

8-
#if canImport(SwiftUI) && !RECTANGLETOOLS_EXCLUDE_SWIFTUI_EDGEINSETS
98
import SwiftUI
109

1110

@@ -62,9 +61,3 @@ public extension EdgeInsets {
6261
}
6362
}
6463
}
65-
#else
66-
67-
public typealias EdgeInsets = NativeEdgeInsets
68-
69-
#endif
70-

0 commit comments

Comments
 (0)