Skip to content
This repository was archived by the owner on Sep 19, 2024. It is now read-only.

Commit 8998cfe

Browse files
authored
Merge pull request #39 from niorko/master
Add support for SPM with WatchOS platform
2 parents 5025163 + 6d6d67d commit 8998cfe

10 files changed

+20
-0
lines changed

Library/UIKit/NibResource+UIKit.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import Foundation
1112
import UIKit
1213

@@ -23,3 +24,4 @@ public extension NibResourceType {
2324
return UINib(resource: self).instantiate(withOwner: ownerOrNil, options: optionsOrNil)
2425
}
2526
}
27+
#endif

Library/UIKit/StoryboardResourceWithInitialController+UIKit.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import Foundation
1112
import UIKit
1213

@@ -20,3 +21,4 @@ public extension StoryboardResourceWithInitialControllerType {
2021
return UIStoryboard(resource: self).instantiateInitialViewController() as? InitialController
2122
}
2223
}
24+
#endif

Library/UIKit/TypedStoryboardSegueInfo+UIStoryboardSegue.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import Foundation
1112
import UIKit
1213

@@ -33,3 +34,4 @@ extension TypedStoryboardSegueInfo {
3334
self.destination = destination
3435
}
3536
}
37+
#endif

Library/UIKit/UICollectionView+ReuseIdentifierProtocol.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import Foundation
1112
import UIKit
1213

@@ -62,3 +63,4 @@ public extension UICollectionView {
6263
register(UINib(resource: nibResource), forSupplementaryViewOfKind: kind, withReuseIdentifier: nibResource.identifier)
6364
}
6465
}
66+
#endif

Library/UIKit/UINib+NibResource.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import UIKit
1112

1213
public extension UINib {
@@ -21,3 +22,4 @@ public extension UINib {
2122
self.init(nibName: resource.name, bundle: resource.bundle)
2223
}
2324
}
25+
#endif

Library/UIKit/UIStoryboard+StoryboardResource.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import UIKit
1112

1213
public extension UIStoryboard {
@@ -21,3 +22,4 @@ public extension UIStoryboard {
2122
self.init(name: resource.name, bundle: resource.bundle)
2223
}
2324
}
25+
#endif

Library/UIKit/UIStoryboard+StoryboardViewControllerResource.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import Foundation
1112
import UIKit
1213

@@ -22,3 +23,4 @@ public extension UIStoryboard {
2223
return self.instantiateViewController(withIdentifier: resource.identifier) as? ViewControllerResource.ViewControllerType
2324
}
2425
}
26+
#endif

Library/UIKit/UITableView+ReuseIdentifierProtocol.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import Foundation
1112
import UIKit
1213

@@ -65,3 +66,4 @@ public extension UITableView {
6566
register(UINib(resource: nibResource), forHeaderFooterViewReuseIdentifier: nibResource.identifier)
6667
}
6768
}
69+
#endif

Library/UIKit/UIViewController+NibResource.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import Foundation
1112
import UIKit
1213

@@ -22,3 +23,4 @@ public extension UIViewController {
2223
self.init(nibName: nib.name, bundle: nib.bundle)
2324
}
2425
}
26+
#endif

Library/UIKit/UIViewController+StoryboardSegueIdentifierProtocol.swift

+2
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
// License: MIT License
88
//
99

10+
#if !os(watchOS)
1011
import Foundation
1112
import UIKit
1213

@@ -37,3 +38,4 @@ public extension StoryboardSegue where Source : UIViewController {
3738
source.performSegue(withIdentifier: identifier.identifier, sender: sender)
3839
}
3940
}
41+
#endif

0 commit comments

Comments
 (0)