Skip to content

Commit

Permalink
Merge pull request #8 from AndrewSB/master
Browse files Browse the repository at this point in the history
Adds SPM support
  • Loading branch information
aaronn authored Aug 11, 2021
2 parents 0b5d716 + e222c98 commit f7496f7
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
// swift-tools-version:5.3

import PackageDescription

let name = "UIViewBordersSwift"

let package = Package(
name: name,
platforms: [.iOS(.v10)],
products: [
.library(name: name, targets: [name]),
.library(name: "\(name)-Dynamic", type: .dynamic, targets: [name])
],
targets: [
.target(name: name, path: name, exclude: ["Info.plist"])
]
)
2 changes: 2 additions & 0 deletions UIViewBordersSwift.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
4674E52725C329260070B625 /* Package.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Package.swift; sourceTree = "<group>"; };
93A98CE71DFCDB97009FBE55 /* UIViewBordersSwift.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = UIViewBordersSwift.framework; sourceTree = BUILT_PRODUCTS_DIR; };
93A98CEA1DFCDB97009FBE55 /* UIViewBordersSwift.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = UIViewBordersSwift.h; sourceTree = "<group>"; };
93A98CEB1DFCDB97009FBE55 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
Expand All @@ -32,6 +33,7 @@
93A98CDD1DFCDB97009FBE55 = {
isa = PBXGroup;
children = (
4674E52725C329260070B625 /* Package.swift */,
93A98CE91DFCDB97009FBE55 /* UIViewBordersSwift */,
93A98CE81DFCDB97009FBE55 /* Products */,
);
Expand Down
2 changes: 2 additions & 0 deletions UIViewBordersSwift/UIView+Borders.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
// Copyright © 2015 Aaron Ng. All rights reserved.
//

#if canImport(UIKit)
import UIKit
#endif

public extension UIView {

Expand Down

0 comments on commit f7496f7

Please sign in to comment.