Skip to content

Commit e69bec1

Browse files
committed
Remove catalyst restraction
1 parent a059125 commit e69bec1

File tree

10 files changed

+31
-15
lines changed

10 files changed

+31
-15
lines changed

Example/Controllers/SideBarController.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import UIKit
22

3-
@available(iOS 14, macCatalyst 14, *)
3+
@available(iOS 14, *)
44
class SidebarController: SPDiffableSideBarController {
55

66
override func viewDidLoad() {
@@ -63,7 +63,7 @@ class SidebarController: SPDiffableSideBarController {
6363
}
6464
}
6565

66-
@available(iOS 14, macCatalyst 14, *)
66+
@available(iOS 14, *)
6767
class SideBarSplitController: UISplitViewController {
6868

6969
init() {

Example/Example.entitlements

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict>
5+
<key>com.apple.security.app-sandbox</key>
6+
<true/>
7+
<key>com.apple.security.network.client</key>
8+
<true/>
9+
</dict>
10+
</plist>

SPDiffable.xcodeproj/project.pbxproj

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,7 @@
9292
F4920A6324F3BFFA007F7EE9 /* SPDiffableWrapperItem.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPDiffableWrapperItem.swift; sourceTree = "<group>"; };
9393
F4920A6824F447D6007F7EE9 /* SPDiffableTableCellProviders.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPDiffableTableCellProviders.swift; sourceTree = "<group>"; };
9494
F4920A6B24F44834007F7EE9 /* SPDiffableCollectionCellProviders.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPDiffableCollectionCellProviders.swift; sourceTree = "<group>"; };
95+
F4977BC6252E079A00B20771 /* Example.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Example.entitlements; sourceTree = "<group>"; };
9596
OBJ_10 /* SPDiffableCollectionController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPDiffableCollectionController.swift; sourceTree = "<group>"; };
9697
OBJ_11 /* SPDiffableCollectionDataSource.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPDiffableCollectionDataSource.swift; sourceTree = "<group>"; };
9798
OBJ_12 /* SPDiffableSideBarButtonCollectionViewListCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SPDiffableSideBarButtonCollectionViewListCell.swift; sourceTree = "<group>"; };
@@ -143,6 +144,7 @@
143144
F47A41CF24EB222C0054DBB2 /* Example */ = {
144145
isa = PBXGroup;
145146
children = (
147+
F4977BC6252E079A00B20771 /* Example.entitlements */,
146148
F47A41EB24EB22A70054DBB2 /* App */,
147149
F47A41E424EB22A70054DBB2 /* Controllers */,
148150
F47A41DE24EB222D0054DBB2 /* Info.plist */,
@@ -347,7 +349,7 @@
347349
TargetAttributes = {
348350
F47A41CD24EB222C0054DBB2 = {
349351
CreatedOnToolsVersion = 12.0;
350-
DevelopmentTeam = 28DU8642K3;
352+
DevelopmentTeam = Z384JW42NU;
351353
ProvisioningStyle = Automatic;
352354
};
353355
};
@@ -502,8 +504,9 @@
502504
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
503505
CLANG_WARN_UNREACHABLE_CODE = YES;
504506
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
507+
CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements;
505508
CODE_SIGN_STYLE = Automatic;
506-
DEVELOPMENT_TEAM = 28DU8642K3;
509+
DEVELOPMENT_TEAM = Z384JW42NU;
507510
ENABLE_STRICT_OBJC_MSGSEND = YES;
508511
ENABLE_TESTABILITY = YES;
509512
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -527,6 +530,7 @@
527530
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.SPDiffable;
528531
PRODUCT_NAME = "$(TARGET_NAME)";
529532
SDKROOT = iphoneos;
533+
SUPPORTS_MACCATALYST = YES;
530534
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
531535
SWIFT_VERSION = 5.0;
532536
TARGETED_DEVICE_FAMILY = "1,2";
@@ -567,9 +571,10 @@
567571
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
568572
CLANG_WARN_UNREACHABLE_CODE = YES;
569573
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
574+
CODE_SIGN_ENTITLEMENTS = Example/Example.entitlements;
570575
CODE_SIGN_STYLE = Automatic;
571576
COPY_PHASE_STRIP = NO;
572-
DEVELOPMENT_TEAM = 28DU8642K3;
577+
DEVELOPMENT_TEAM = Z384JW42NU;
573578
ENABLE_NS_ASSERTIONS = NO;
574579
ENABLE_STRICT_OBJC_MSGSEND = YES;
575580
GCC_C_LANGUAGE_STANDARD = gnu11;
@@ -588,6 +593,7 @@
588593
PRODUCT_BUNDLE_IDENTIFIER = by.ivanvorobei.SPDiffable;
589594
PRODUCT_NAME = "$(TARGET_NAME)";
590595
SDKROOT = iphoneos;
596+
SUPPORTS_MACCATALYST = YES;
591597
SWIFT_VERSION = 5.0;
592598
TARGETED_DEVICE_FAMILY = "1,2";
593599
VALIDATE_PRODUCT = YES;

Sources/SPDiffable/CellProvider/Models/SPDiffableSnapshot.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ public typealias SPDiffableSnapshot = NSDiffableDataSourceSnapshot<SPDiffableSec
3030
/**
3131
Wrapper of NSDiffableDataSourceSectionSnapshot with basic `SPDiffableItem`.
3232
*/
33-
@available(iOS 14, macCatalyst 14, *)
33+
@available(iOS 14, *)
3434
public typealias SPDiffableSectionSnapshot = NSDiffableDataSourceSectionSnapshot<SPDiffableItem>

Sources/SPDiffable/CellProvider/SPDiffableCollectionCellProviders.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ public enum SPDiffableCollectionCellProviders {
66
Defaults cell provider, which can help you doing side bar faster.
77
You can do your providers and ise its with more flexible.
88
*/
9-
@available(iOS 14, macCatalyst 14, *)
9+
@available(iOS 14, *)
1010
public static var sideBar: SPDiffableCollectionCellProvider {
1111
let cellProvider: SPDiffableCollectionCellProvider = { (collectionView, indexPath, item) -> UICollectionViewCell? in
1212
let providers = [sideBarItem, sideBarButton, sideBarHeader]
@@ -20,7 +20,7 @@ public enum SPDiffableCollectionCellProviders {
2020
return cellProvider
2121
}
2222

23-
@available(iOS 14, macCatalyst 14, *)
23+
@available(iOS 14, *)
2424
public static var sideBarItem: SPDiffableCollectionCellProvider {
2525
let cellProvider: SPDiffableCollectionCellProvider = { (collectionView, indexPath, item) -> UICollectionViewCell? in
2626
guard let item = item as? SPDiffableSideBarItem else { return nil }
@@ -36,7 +36,7 @@ public enum SPDiffableCollectionCellProviders {
3636
return cellProvider
3737
}
3838

39-
@available(iOS 14, macCatalyst 14, *)
39+
@available(iOS 14, *)
4040
public static var sideBarButton: SPDiffableCollectionCellProvider {
4141
let cellProvider: SPDiffableCollectionCellProvider = { (collectionView, indexPath, item) -> UICollectionViewCell? in
4242
guard let item = item as? SPDiffableSideBarButton else { return nil }
@@ -49,7 +49,7 @@ public enum SPDiffableCollectionCellProviders {
4949
return cellProvider
5050
}
5151

52-
@available(iOS 14, macCatalyst 14, *)
52+
@available(iOS 14, *)
5353
public static var sideBarHeader: SPDiffableCollectionCellProvider {
5454
let cellProvider: SPDiffableCollectionCellProvider = { (collectionView, indexPath, item) -> UICollectionViewCell? in
5555
guard let item = item as? SPDiffableSideBarHeader else { return nil }

Sources/SPDiffable/Collection/Models/SPDiffableSideBarButton.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import UIKit
2626

2727
Colorful title usually.
2828
*/
29-
@available(iOS 14, macCatalyst 14, *)
29+
@available(iOS 14, *)
3030
open class SPDiffableSideBarButton: SPDiffableItem {
3131

3232
public let title: String

Sources/SPDiffable/Collection/Models/SPDiffableSideBarHeader.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import UIKit
2424
/**
2525
Header model for side bar item.
2626
*/
27-
@available(iOS 14, macCatalyst 14, *)
27+
@available(iOS 14, *)
2828
open class SPDiffableSideBarHeader: SPDiffableItem {
2929

3030
public var text: String

Sources/SPDiffable/Collection/Models/SPDiffableSideBarItem.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ import UIKit
2626

2727
For header use `SPDiffableSideBarHeader` class.
2828
*/
29-
@available(iOS 14, macCatalyst 14, *)
29+
@available(iOS 14, *)
3030
open class SPDiffableSideBarItem: SPDiffableItem {
3131

3232
public let title: String

Sources/SPDiffable/Collection/SPDiffableSideBarButtonCollectionViewListCell.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import UIKit
2828
Also not show background selection, but cell selected. Need deselect it manually.
2929
Configure it cell need via `updateWithItem` func.
3030
*/
31-
@available(iOS 14, macCatalyst 14, *)
31+
@available(iOS 14, *)
3232
class SPDiffableSideBarButtonCollectionViewListCell: UICollectionViewListCell {
3333

3434
private var item: SPDiffableSideBarButton? = nil

Sources/SPDiffable/Collection/SPDiffableSideBarController.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ Basic side bar controller.
3030
Collection configuration setted to `.sidebar`.
3131
Layout detect data source and automatically set header and footer mode.
3232
*/
33-
@available(iOS 14, macCatalyst 14, *)
33+
@available(iOS 14, *)
3434
open class SPDiffableSideBarController: UIViewController, UICollectionViewDelegate {
3535

3636
public var collectionView: UICollectionView!

0 commit comments

Comments
 (0)