Skip to content

Commit 4095ba2

Browse files
authored
Rename Package - swiftui-list-support (#63)
1 parent b912e48 commit 4095ba2

File tree

7 files changed

+43
-11
lines changed

7 files changed

+43
-11
lines changed

Development/Development.xcodeproj/project.pbxproj

Lines changed: 25 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@
2727
4BEAFA4C2A3CE48800478C59 /* AsyncMultiplexImage in Frameworks */ = {isa = PBXBuildFile; productRef = 4BEAFA4B2A3CE48800478C59 /* AsyncMultiplexImage */; };
2828
4BEAFA4E2A3CE48800478C59 /* AsyncMultiplexImage-Nuke in Frameworks */ = {isa = PBXBuildFile; productRef = 4BEAFA4D2A3CE48800478C59 /* AsyncMultiplexImage-Nuke */; };
2929
4BEBA5682D3EC5A200BDE020 /* BookRerender.swift in Sources */ = {isa = PBXBuildFile; fileRef = 4BEBA5672D3EC59A00BDE020 /* BookRerender.swift */; };
30+
B0699F292E8863750098A042 /* SelectableForEach in Frameworks */ = {isa = PBXBuildFile; productRef = B0699F282E8863750098A042 /* SelectableForEach */; };
31+
B0699F2B2E8863790098A042 /* StickyHeader in Frameworks */ = {isa = PBXBuildFile; productRef = B0699F2A2E8863790098A042 /* StickyHeader */; };
32+
B0699F2D2E88637D0098A042 /* RefreshControl in Frameworks */ = {isa = PBXBuildFile; productRef = B0699F2C2E88637D0098A042 /* RefreshControl */; };
3033
/* End PBXBuildFile section */
3134

3235
/* Begin PBXCopyFilesBuildPhase section */
@@ -49,7 +52,7 @@
4952
4B26A67C2A33239500B75FB4 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = "<group>"; };
5053
4B26A67E2A33239600B75FB4 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
5154
4B26A6812A33239600B75FB4 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = "<group>"; };
52-
4B26A68A2A3323D400B75FB4 /* swift-dynamic-list */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "swift-dynamic-list"; path = ..; sourceTree = "<group>"; };
55+
4B26A68A2A3323D400B75FB4 /* swiftui-list-support */ = {isa = PBXFileReference; lastKnownFileType = wrapper; name = "swiftui-list-support"; path = ..; sourceTree = "<group>"; };
5356
4B3722672A33C701005FF24A /* BookUIKitBasedCompositional.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookUIKitBasedCompositional.swift; sourceTree = "<group>"; };
5457
4B910EBB2A77A2F50079D26D /* BookUIKitBasedFlow.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = BookUIKitBasedFlow.swift; sourceTree = "<group>"; };
5558
4B9223612D3CE6B5007E20CB /* GlobalCounter.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GlobalCounter.swift; sourceTree = "<group>"; };
@@ -70,8 +73,11 @@
7073
4BC34FAF2CDB1B9200D22811 /* CollectionView in Frameworks */,
7174
4BEAFA4E2A3CE48800478C59 /* AsyncMultiplexImage-Nuke in Frameworks */,
7275
4BEAFA4C2A3CE48800478C59 /* AsyncMultiplexImage in Frameworks */,
76+
B0699F2B2E8863790098A042 /* StickyHeader in Frameworks */,
77+
B0699F2D2E88637D0098A042 /* RefreshControl in Frameworks */,
7378
4B9981D82A34F9B500840751 /* CompositionKit in Frameworks */,
7479
4BD542E92A362B40006261B9 /* DynamicList in Frameworks */,
80+
B0699F292E8863750098A042 /* SelectableForEach in Frameworks */,
7581
);
7682
runOnlyForDeploymentPostprocessing = 0;
7783
};
@@ -81,7 +87,7 @@
8187
4B26A66E2A33239500B75FB4 = {
8288
isa = PBXGroup;
8389
children = (
84-
4B26A68A2A3323D400B75FB4 /* swift-dynamic-list */,
90+
4B26A68A2A3323D400B75FB4 /* swiftui-list-support */,
8591
4B26A6792A33239500B75FB4 /* Development */,
8692
4B26A6782A33239500B75FB4 /* Products */,
8793
4B26A68B2A3323E900B75FB4 /* Frameworks */,
@@ -156,6 +162,9 @@
156162
4BEAFA4D2A3CE48800478C59 /* AsyncMultiplexImage-Nuke */,
157163
4BC34FAE2CDB1B9200D22811 /* CollectionView */,
158164
4B08E0AC2CF5947100B05999 /* ScrollTracking */,
165+
B0699F282E8863750098A042 /* SelectableForEach */,
166+
B0699F2A2E8863790098A042 /* StickyHeader */,
167+
B0699F2C2E88637D0098A042 /* RefreshControl */,
159168
);
160169
productName = Development;
161170
productReference = 4B26A6772A33239500B75FB4 /* Development.app */;
@@ -363,7 +372,7 @@
363372
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
364373
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
365374
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
366-
IPHONEOS_DEPLOYMENT_TARGET = 16;
375+
IPHONEOS_DEPLOYMENT_TARGET = 17;
367376
LD_RUNPATH_SEARCH_PATHS = (
368377
"$(inherited)",
369378
"@executable_path/Frameworks",
@@ -393,7 +402,7 @@
393402
INFOPLIST_KEY_UILaunchScreen_Generation = YES;
394403
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPad = "UIInterfaceOrientationPortrait UIInterfaceOrientationPortraitUpsideDown UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
395404
INFOPLIST_KEY_UISupportedInterfaceOrientations_iPhone = "UIInterfaceOrientationPortrait UIInterfaceOrientationLandscapeLeft UIInterfaceOrientationLandscapeRight";
396-
IPHONEOS_DEPLOYMENT_TARGET = 16;
405+
IPHONEOS_DEPLOYMENT_TARGET = 17;
397406
LD_RUNPATH_SEARCH_PATHS = (
398407
"$(inherited)",
399408
"@executable_path/Frameworks",
@@ -477,6 +486,18 @@
477486
package = 4BEAFA4A2A3CE48800478C59 /* XCRemoteSwiftPackageReference "swiftui-async-multiplex-image" */;
478487
productName = "AsyncMultiplexImage-Nuke";
479488
};
489+
B0699F282E8863750098A042 /* SelectableForEach */ = {
490+
isa = XCSwiftPackageProductDependency;
491+
productName = SelectableForEach;
492+
};
493+
B0699F2A2E8863790098A042 /* StickyHeader */ = {
494+
isa = XCSwiftPackageProductDependency;
495+
productName = StickyHeader;
496+
};
497+
B0699F2C2E88637D0098A042 /* RefreshControl */ = {
498+
isa = XCSwiftPackageProductDependency;
499+
productName = RefreshControl;
500+
};
480501
/* End XCSwiftPackageProductDependency section */
481502
};
482503
rootObject = 4B26A66F2A33239500B75FB4 /* Project object */;

Development/Development/BookCollectionView.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import SwiftUI
22

33
@testable import CollectionView
4+
@testable import SelectableForEach
45

56
struct BookCollectionViewSingleSection: View, PreviewProvider {
67

Development/Development/BookRerender.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import SwiftUI
2-
3-
@testable import CollectionView
2+
@testable import SelectableForEach
43

54
private struct _Cell: View {
65
@Environment(\.collectionView_updateSelection) var update

Package.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import PackageDescription
55

66
let package = Package(
7-
name: "swift-dynamic-list",
7+
name: "swiftui-list-support",
88
platforms: [
99
.macOS(.v15),
1010
.iOS(.v17)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# swift-dynamic-list
1+
# swiftui-list-support
22
Convenient component displaying elements in UICollectionView - Supports SwiftUI-based cell
33

44
## Requirements

Sources/CollectionView/CollectionView.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import IndexedCollection
21
import SwiftUI
32

43
public struct CollectionView<

Sources/SelectableForEach/SelectableForEach.swift

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ import IndexedCollection
66
The contents that produced by ForEach have environment values that indicate the selection state.
77

88
```
9-
@Environment(\.collectionView_isSelected) var isSelected: Bool
10-
@Environment(\.collectionView_updateSelection) var updateSelection: (Bool) -> Void
9+
@Environment(\.selectableForEach_isSelected) var isSelected: Bool
10+
@Environment(\.selectableForEach_updateSelection) var updateSelection: (Bool) -> Void
1111
```
1212
*/
1313
public struct SelectableForEach<
@@ -61,15 +61,27 @@ extension EnvironmentValues {
6161
A boolean value that indicates whether the cell is selected.
6262
Provided by the ``SelectableForEach`` view.
6363
*/
64+
@available(*, deprecated, renamed: "selectableForEach_isSelected")
6465
@Entry public var collectionView_isSelected: Bool = false
66+
67+
public var selectableForEach_isSelected: Bool {
68+
get { self.collectionView_isSelected }
69+
set { self.collectionView_isSelected = newValue }
70+
}
6571
}
6672

6773
extension EnvironmentValues {
6874
/**
6975
A closure that updates the selection state of the cell.
7076
Provided by the ``SelectableForEach`` view.
7177
*/
78+
@available(*, deprecated, renamed: "selectableForEach_updateSelection")
7279
@Entry public var collectionView_updateSelection: UpdateSelectionAction = .init { _ in }
80+
81+
public var selectableForEach_updateSelection: UpdateSelectionAction {
82+
get { self.collectionView_updateSelection }
83+
set { self.collectionView_updateSelection = newValue }
84+
}
7385
}
7486

7587
public struct UpdateSelectionAction {

0 commit comments

Comments
 (0)