Skip to content

Commit

Permalink
Compositional layout support (#115)
Browse files Browse the repository at this point in the history
Add the compositional layout support for the SectionKit
  • Loading branch information
CalvinChangCC authored May 22, 2024
2 parents 6ab82ff + 1583225 commit 878d29e
Show file tree
Hide file tree
Showing 73 changed files with 11,433 additions and 638 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,15 @@ extension ExampleListCoordinator: Presentable {
navigationController: navigationController,
presentable: VanillaSwiftExamples.EmojisCoordinator(navigationController: navigationController)
)
)
),
ExampleViewModel(
name: "Names",
description: "An MVVM-C architecture with compositional layout example by using a ListCompositionalLayoutCollectionViewAdapter that shows multiple ListCompositionalLayoutSectionController.",
navigation: ExampleCoordinator(
navigationController: navigationController,
presentable: NamesCoordinator(navigationController: navigationController)
)
),
]
),
ExampleSectionViewModel(
Expand Down
14 changes: 13 additions & 1 deletion Example/SectionKitExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
archiveVersion = 1;
classes = {
};
objectVersion = 52;
objectVersion = 54;
objects = {

/* Begin PBXBuildFile section */
Expand All @@ -12,6 +12,7 @@
5AFBBE14264BEF2B008C095D /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5AFBBE13264BEF2B008C095D /* SceneDelegate.swift */; };
5AFBBE18264BEF2C008C095D /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5AFBBE17264BEF2C008C095D /* Assets.xcassets */; };
5AFBBE1E264BEF2C008C095D /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5AFBBE1C264BEF2C008C095D /* LaunchScreen.storyboard */; };
D91425612BB478D90005E8CD /* first-names.json in Resources */ = {isa = PBXBuildFile; fileRef = D91425602BB478D90005E8CD /* first-names.json */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
Expand All @@ -27,6 +28,7 @@
5AFBBE1F264BEF2C008C095D /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
5AFBBE25264BEF34008C095D /* tr-sectionkit */ = {isa = PBXFileReference; lastKnownFileType = folder; name = "tr-sectionkit"; path = ..; sourceTree = "<group>"; };
5AFBBE26264BEF41008C095D /* SectionKitExample.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = SectionKitExample.entitlements; sourceTree = "<group>"; };
D91425602BB478D90005E8CD /* first-names.json */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.json; path = "first-names.json"; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
Expand Down Expand Up @@ -66,6 +68,7 @@
5AFBBE10264BEF2B008C095D /* SectionKitExample */ = {
isa = PBXGroup;
children = (
D914255F2BB478B60005E8CD /* Resources */,
5AFBBE11264BEF2B008C095D /* AppDelegate.swift */,
5AFBBE13264BEF2B008C095D /* SceneDelegate.swift */,
5AFBBE17264BEF2C008C095D /* Assets.xcassets */,
Expand All @@ -83,6 +86,14 @@
name = Frameworks;
sourceTree = "<group>";
};
D914255F2BB478B60005E8CD /* Resources */ = {
isa = PBXGroup;
children = (
D91425602BB478D90005E8CD /* first-names.json */,
);
path = Resources;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -146,6 +157,7 @@
buildActionMask = 2147483647;
files = (
5AFBBE1E264BEF2C008C095D /* LaunchScreen.storyboard in Resources */,
D91425612BB478D90005E8CD /* first-names.json in Resources */,
5AFBBE18264BEF2C008C095D /* Assets.xcassets in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down
Loading

0 comments on commit 878d29e

Please sign in to comment.