Skip to content

Commit 0fbf992

Browse files
authored
SPM support (#1) (#44)
Added SPM support
1 parent 89619ab commit 0fbf992

2 files changed

Lines changed: 24 additions & 0 deletions

File tree

Package.swift

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
// swift-tools-version:5.1
2+
3+
import PackageDescription
4+
5+
let package = Package(
6+
name: "SwiftyAttributes",
7+
platforms: [
8+
.iOS(.v8),
9+
.macOS(.v10_11),
10+
.tvOS(.v9)
11+
],
12+
products: [
13+
.library(name: "SwiftyAttributes", targets: ["SwiftyAttributes"])
14+
],
15+
targets: [
16+
.target(name: "SwiftyAttributes", path: "SwiftyAttributes"),
17+
.testTarget(name: "SwiftyAttributesTests", dependencies: ["SwiftyAttributes"], path: "SwiftyAttributesTests")
18+
],
19+
swiftLanguageVersions: [
20+
.v5
21+
]
22+
)

SwiftyAttributes/Sources/common/Attribute+Sequence.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66
// Copyright © 2016 Eddie Kaiger. All rights reserved.
77
//
88

9+
import Foundation
10+
911
/**
1012
An extension on dictionaries that allows us to convert a Foundation-based dictionary of attributes to an array of `Attribute`s.
1113
*/

0 commit comments

Comments
 (0)