diff --git a/Package.swift b/Package.swift index e37b544..b0b911a 100644 --- a/Package.swift +++ b/Package.swift @@ -6,22 +6,20 @@ import PackageDescription let package = Package( name: "TORoundedButton", platforms: [ - .iOS(.v10) + .iOS(.v12) ], products: [ .library( name: "TORoundedButton", + type: .static, targets: ["TORoundedButton"] ) ], targets: [ .target( name: "TORoundedButton", - path: ".", - sources: [ - "TORoundedButton/TORoundedButton.m" - ], - publicHeadersPath: "include" + sources: ["spm"] ) - ] + ], + cLanguageStandard: .c11 ) diff --git a/TORoundedButton/TORoundedButton.h b/TORoundedButton/TORoundedButton.h index cb1d954..f6f02a8 100644 --- a/TORoundedButton/TORoundedButton.h +++ b/TORoundedButton/TORoundedButton.h @@ -26,6 +26,7 @@ NS_ASSUME_NONNULL_BEGIN @class TORoundedButton; +NS_SWIFT_NAME(RoundedButtonDelegate) @protocol TORoundedButtonDelegate /// Called when the user taps on the associated button. diff --git a/include/TORoundedButton.h b/spm/TORoundedButton.h similarity index 100% rename from include/TORoundedButton.h rename to spm/TORoundedButton.h diff --git a/spm/TORoundedButton.m b/spm/TORoundedButton.m new file mode 120000 index 0000000..73562b4 --- /dev/null +++ b/spm/TORoundedButton.m @@ -0,0 +1 @@ +../TORoundedButton/TORoundedButton.m \ No newline at end of file