Skip to content

Commit dfabe9e

Browse files
committed
Update examples for v1.38.0
1 parent e627900 commit dfabe9e

File tree

4 files changed

+24
-7
lines changed

4 files changed

+24
-7
lines changed

CESDK-Showcases.xcodeproj/project.pbxproj

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1039,7 +1039,7 @@
10391039
path = "engine-guides-uri-resolver";
10401040
sourceTree = "<group>";
10411041
};
1042-
"TEMP_4C64C1E8-CA82-417B-911F-A175A2C79C4A" /* cesdk_swift_examples */ = {
1042+
"TEMP_A0723E23-7116-4D55-B1E5-86429FBD94DF" /* cesdk_swift_examples */ = {
10431043
isa = PBXGroup;
10441044
children = (
10451045
582BF90249D09687E7CFACDC /* editor-guides-solutions-video-editor */,
@@ -1466,7 +1466,7 @@
14661466
GCC_WARN_UNUSED_VARIABLE = YES;
14671467
GENERATE_INFOPLIST_FILE = YES;
14681468
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
1469-
MARKETING_VERSION = 1.37.0;
1469+
MARKETING_VERSION = 1.38.0;
14701470
MTL_ENABLE_DEBUG_INFO = NO;
14711471
MTL_FAST_MATH = YES;
14721472
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1556,7 +1556,7 @@
15561556
GCC_WARN_UNUSED_VARIABLE = YES;
15571557
GENERATE_INFOPLIST_FILE = YES;
15581558
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
1559-
MARKETING_VERSION = 1.37.0;
1559+
MARKETING_VERSION = 1.38.0;
15601560
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
15611561
MTL_FAST_MATH = YES;
15621562
ONLY_ACTIVE_ARCH = YES;
@@ -1631,15 +1631,15 @@
16311631
repositoryURL = "https://github.com/imgly/IMGLYUI-swift";
16321632
requirement = {
16331633
kind = exactVersion;
1634-
version = 1.37.0;
1634+
version = 1.38.0;
16351635
};
16361636
};
16371637
10597E39A033ABD8B233CD14 /* XCRemoteSwiftPackageReference "IMGLYEngine-swift" */ = {
16381638
isa = XCRemoteSwiftPackageReference;
16391639
repositoryURL = "https://github.com/imgly/IMGLYEngine-swift";
16401640
requirement = {
16411641
kind = exactVersion;
1642-
version = 1.37.0;
1642+
version = 1.38.0;
16431643
};
16441644
};
16451645
150F161C090426538C39E173 /* XCRemoteSwiftPackageReference "Kingfisher" */ = {

editor-guides-configuration-basics/BasicEditorSolution.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ struct BasicEditorSolution: View {
88
// highlight-userID
99
userID: "<your unique user id>",
1010
// highlight-baseURL
11-
baseURL: URL(string: "https://cdn.img.ly/packages/imgly/cesdk-engine/1.37.0/assets")!
11+
baseURL: URL(string: "https://cdn.img.ly/packages/imgly/cesdk-engine/1.38.0/assets")!
1212
)
1313

1414
var editor: some View {

engine-guides-exporting-blocks/ExportingBlocks.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ import IMGLYEngine
99

1010
@MainActor
1111
func exportingBlocks(engine: Engine) async throws {
12-
try engine.editor.setSettingString("basePath", value: "https://cdn.img.ly/packages/imgly/cesdk-engine/1.37.0/assets")
12+
try engine.editor.setSettingString("basePath", value: "https://cdn.img.ly/packages/imgly/cesdk-engine/1.38.0/assets")
1313
try await engine.addDefaultAssetSources()
1414
let sceneUrl =
1515
URL(string: "https://cdn.img.ly/assets/demo/v1/ly.img.template/templates/cesdk_postcard_1.scene")!

engine-guides-source-sets/SourceSets.swift

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,4 +85,21 @@ func sourceSets(engine: Engine) async throws {
8585
)
8686

8787
// highlight-apply-asset
88+
89+
// highlight-video-source-sets
90+
let videoFill = try engine.block.createFill(.video)
91+
try engine.block.setSourceSet(videoFill, property: "fill/video/sourceSet", sourceSet: [
92+
.init(
93+
uri: URL(string: "https://img.ly/static/example-assets/sourceset/1x.mp4")!,
94+
width: 1920,
95+
height: 1080
96+
),
97+
])
98+
99+
try await engine.block.addVideoFileURIToSourceSet(
100+
videoFill,
101+
property: "fill/video/sourceSet",
102+
uri: URL(string: "https://img.ly/static/example-assets/sourceset/2x.mp4")!
103+
)
104+
// highlight-video-source-sets
88105
}

0 commit comments

Comments
 (0)