diff --git a/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata new file mode 100644 index 0000000..919434a --- /dev/null +++ b/.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata @@ -0,0 +1,7 @@ + + + + + diff --git a/CHANGELOG.md b/CHANGELOG.md index 52a2e52..770072e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,8 @@ ## [Unreleased] +### Added +- Add support for Swift Package Manager + ## [2.0.0] - 2024-03-04 ### Changed diff --git a/NavigationBarExtension/Classes/UIToolbar+Appearance.swift b/NavigationBarExtension/Classes/UIToolbar+Appearance.swift index eeb2938..7adcb71 100644 --- a/NavigationBarExtension/Classes/UIToolbar+Appearance.swift +++ b/NavigationBarExtension/Classes/UIToolbar+Appearance.swift @@ -5,7 +5,7 @@ // Created by Samuel Gallet on 29/01/2020. // -import Foundation +import UIKit extension UIToolbar { diff --git a/Package.resolved b/Package.resolved new file mode 100644 index 0000000..8495e32 --- /dev/null +++ b/Package.resolved @@ -0,0 +1,14 @@ +{ + "pins" : [ + { + "identity" : "adutils", + "kind" : "remoteSourceControl", + "location" : "git@github.com:faberNovel/ADUtils.git", + "state" : { + "revision" : "791ccbdb9dccff3ada11c0711f3cbcd57919292e", + "version" : "12.1.1" + } + } + ], + "version" : 2 +} diff --git a/Package.swift b/Package.swift new file mode 100644 index 0000000..698eddd --- /dev/null +++ b/Package.swift @@ -0,0 +1,28 @@ +// swift-tools-version:5.7 + +import PackageDescription + +let package = Package( + name: "ADNavigationBarExtension", + platforms: [ + .iOS(.v14) + ], + products: [ + .library( + name: "ADNavigationBarExtension", + targets: ["ADNavigationBarExtension"] + ) + ], + dependencies: [ + .package(url: "git@github.com:faberNovel/ADUtils.git", from: "12.1.0"), + ], + targets: [ + .target( + name: "ADNavigationBarExtension", + dependencies: [ + .product(name: "ADUtils", package: "ADUtils"), + ], + path: "NavigationBarExtension/Classes" + ) + ] +)