feat: add support for SwiftPM

This commit is contained in:
Kyle Fang
2023-06-18 09:35:56 +08:00
parent f4cc363e3e
commit c7a4f7d2fa
9 changed files with 25 additions and 1 deletions

23
Package.swift Normal file
View File

@@ -0,0 +1,23 @@
// swift-tools-version: 5.9
// The swift-tools-version declares the minimum version of Swift required to build this package.
import PackageDescription
let package = Package(
name: "PerspectiveTransform",
products: [
// Products define the executables and libraries a package produces, making them visible to other packages.
.library(
name: "PerspectiveTransform",
targets: ["PerspectiveTransform"]),
],
targets: [
// Targets are the basic building blocks of a package, defining a module or a test suite.
// Targets can depend on other targets in this package and products from dependencies.
.target(
name: "PerspectiveTransform"),
.testTarget(
name: "PerspectiveTransformTests",
dependencies: ["PerspectiveTransform"]),
]
)

View File

@@ -16,7 +16,7 @@ Pod::Spec.new do |s|
s.social_media_url = 'https://twitter.com/iospaulz'
s.platform = :ios, '12.2'
s.swift_version = '5.0'
s.source_files = 'Pod/Classes/**/*'
s.source_files = 'Sources/PerspectiveTransform/**/*'
s.frameworks = 'UIKit', 'CoreGraphics', 'QuartzCore'
s.test_spec 'UnitSpecs' do |ts|
ts.requires_app_host = false

View File

@@ -5,6 +5,7 @@
// Created by Paul Zabelin on 2/20/16.
//
//
import UIKit
public extension Perspective {
/**