Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix SPM support #89

Merged
merged 1 commit into from
Oct 6, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ let package = Package(
sources: ["Sources"]
)
],
swiftLanguageVersions: [3, 4, 5]
swiftLanguageVersions: [.v4, .v5]
)
2 changes: 2 additions & 0 deletions Sources/Storyboard/StoryboardBased.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*********************************************/

#if canImport(UIKit)
import UIKit

// MARK: Protocol Definition
Expand Down Expand Up @@ -45,3 +46,4 @@ public extension StoryboardBased where Self: UIViewController {
return typedViewController
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/Storyboard/StoryboardSceneBased.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*********************************************/

#if canImport(UIKit)
import UIKit

// MARK: Protocol Definition
Expand Down Expand Up @@ -51,3 +52,4 @@ public extension StoryboardSceneBased where Self: UIViewController {
return typedViewController
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/View/NibLoadable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*********************************************/

#if canImport(UIKit)
import UIKit

// MARK: Protocol Definition
Expand Down Expand Up @@ -45,3 +46,4 @@ public extension NibLoadable where Self: UIView {
return view
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/View/NibOwnerLoadable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*********************************************/

#if canImport(UIKit)
import UIKit

// MARK: Protocol Definition
Expand Down Expand Up @@ -52,6 +53,7 @@ public extension NibOwnerLoadable where Self: UIView {
}
}
}
#endif

/// Swift < 4.2 support
#if !(swift(>=4.2))
Expand Down
2 changes: 2 additions & 0 deletions Sources/View/Reusable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*********************************************/

#if canImport(UIKit)
import UIKit

// MARK: Protocol definition
Expand All @@ -31,3 +32,4 @@ public extension Reusable {
return String(describing: self)
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/View/UICollectionView+Reusable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*********************************************/

#if canImport(UIKit)
import UIKit

// MARK: Reusable support for UICollectionView
Expand Down Expand Up @@ -128,3 +129,4 @@ public extension UICollectionView {
return typedView
}
}
#endif
2 changes: 2 additions & 0 deletions Sources/View/UITableView+Reusable.swift
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
*
*********************************************/

#if canImport(UIKit)
import UIKit

// MARK: Reusable support for UITableView
Expand Down Expand Up @@ -108,3 +109,4 @@ public extension UITableView {
return view
}
}
#endif