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/Package.swift b/Package.swift new file mode 100644 index 0000000..6e98dc9 --- /dev/null +++ b/Package.swift @@ -0,0 +1,15 @@ +// swift-tools-version:5.2 +// The swift-tools-version declares the minimum version of Swift required to build this package. + +import PackageDescription + +let package = Package( + name: "Presentr", + platforms: [.iOS(.v11)], + products: [ + .library(name: "Presentr", targets: ["Presentr"]), + ], + targets: [ + .target(name: "Presentr", path: "Presentr") + ] +) diff --git a/Presentr/CoverHorizontalAnimation.swift b/Presentr/CoverHorizontalAnimation.swift index b809a13..7cce4cf 100644 --- a/Presentr/CoverHorizontalAnimation.swift +++ b/Presentr/CoverHorizontalAnimation.swift @@ -6,7 +6,7 @@ // Copyright © 2016 danielozano. All rights reserved. // -import Foundation +import UIKit public class CoverHorizontalAnimation: PresentrAnimation { diff --git a/Presentr/CoverVerticalAnimation.swift b/Presentr/CoverVerticalAnimation.swift index cec7542..53d6828 100644 --- a/Presentr/CoverVerticalAnimation.swift +++ b/Presentr/CoverVerticalAnimation.swift @@ -6,7 +6,7 @@ // // -import Foundation +import UIKit public class CoverVerticalAnimation: PresentrAnimation { diff --git a/Presentr/CoverVerticalFromTopAnimation.swift b/Presentr/CoverVerticalFromTopAnimation.swift index 1daaec0..14a940d 100644 --- a/Presentr/CoverVerticalFromTopAnimation.swift +++ b/Presentr/CoverVerticalFromTopAnimation.swift @@ -6,7 +6,7 @@ // Copyright © 2016 danielozano. All rights reserved. // -import Foundation +import UIKit public class CoverVerticalFromTopAnimation: PresentrAnimation { diff --git a/Presentr/FlipHorizontalAnimation.swift b/Presentr/FlipHorizontalAnimation.swift index b72add9..53c541e 100644 --- a/Presentr/FlipHorizontalAnimation.swift +++ b/Presentr/FlipHorizontalAnimation.swift @@ -6,7 +6,7 @@ // // Inspired by https://stackoverflow.com/questions/12565204/smooth-horizontal-flip-using-catransform3dmakerotation -import Foundation +import UIKit public class FlipHorizontalAnimation: PresentrAnimation { diff --git a/Presentr/ModalCenterPosition.swift b/Presentr/ModalCenterPosition.swift index 5521399..9a4ce5c 100644 --- a/Presentr/ModalCenterPosition.swift +++ b/Presentr/ModalCenterPosition.swift @@ -6,7 +6,7 @@ // Copyright © 2016 danielozano. All rights reserved. // -import Foundation +import UIKit /** Describes the presented presented view controller's center position. It is meant to be non-specific, but we can use the 'calculatePoint' method when we want to calculate the exact point by passing in the 'containerBounds' rect that only the presentation controller should be aware of. diff --git a/PresentrTests/Info.plist b/PresentrTests/Info.plist deleted file mode 100644 index ba72822..0000000 --- a/PresentrTests/Info.plist +++ /dev/null @@ -1,24 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - BNDL - CFBundleShortVersionString - 1.0 - CFBundleSignature - ???? - CFBundleVersion - 1 - - diff --git a/PresentrTests/PresentrTests.swift b/PresentrTests/PresentrTests.swift deleted file mode 100644 index d9dd951..0000000 --- a/PresentrTests/PresentrTests.swift +++ /dev/null @@ -1,36 +0,0 @@ -// -// PresentrTests.swift -// PresentrTests -// -// Created by Daniel Lozano on 5/11/16. -// Copyright © 2016 danielozano. All rights reserved. -// - -import XCTest -@testable import Presentr - -class PresentrTests: XCTestCase { - - override func setUp() { - super.setUp() - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDown() { - // Put teardown code here. This method is called after the invocation of each test method in the class. - super.tearDown() - } - - func testExample() { - // This is an example of a functional test case. - // Use XCTAssert and related functions to verify your tests produce the correct results. - } - - func testPerformanceExample() { - // This is an example of a performance test case. - self.measure { - // Put the code you want to measure the time of here. - } - } - -}