Skip to content

Commit

Permalink
Update examples for v1.38.0
Browse files Browse the repository at this point in the history
  • Loading branch information
imgly-bot committed Oct 29, 2024
1 parent e627900 commit dfabe9e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 7 deletions.
10 changes: 5 additions & 5 deletions CESDK-Showcases.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1039,7 +1039,7 @@
path = "engine-guides-uri-resolver";
sourceTree = "<group>";
};
"TEMP_4C64C1E8-CA82-417B-911F-A175A2C79C4A" /* cesdk_swift_examples */ = {
"TEMP_A0723E23-7116-4D55-B1E5-86429FBD94DF" /* cesdk_swift_examples */ = {
isa = PBXGroup;
children = (
582BF90249D09687E7CFACDC /* editor-guides-solutions-video-editor */,
Expand Down Expand Up @@ -1466,7 +1466,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
MARKETING_VERSION = 1.37.0;
MARKETING_VERSION = 1.38.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
PRODUCT_NAME = "$(TARGET_NAME)";
Expand Down Expand Up @@ -1556,7 +1556,7 @@
GCC_WARN_UNUSED_VARIABLE = YES;
GENERATE_INFOPLIST_FILE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
MARKETING_VERSION = 1.37.0;
MARKETING_VERSION = 1.38.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
Expand Down Expand Up @@ -1631,15 +1631,15 @@
repositoryURL = "https://github.com/imgly/IMGLYUI-swift";
requirement = {
kind = exactVersion;
version = 1.37.0;
version = 1.38.0;
};
};
10597E39A033ABD8B233CD14 /* XCRemoteSwiftPackageReference "IMGLYEngine-swift" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/imgly/IMGLYEngine-swift";
requirement = {
kind = exactVersion;
version = 1.37.0;
version = 1.38.0;
};
};
150F161C090426538C39E173 /* XCRemoteSwiftPackageReference "Kingfisher" */ = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ struct BasicEditorSolution: View {
// highlight-userID
userID: "<your unique user id>",
// highlight-baseURL
baseURL: URL(string: "https://cdn.img.ly/packages/imgly/cesdk-engine/1.37.0/assets")!
baseURL: URL(string: "https://cdn.img.ly/packages/imgly/cesdk-engine/1.38.0/assets")!
)

var editor: some View {
Expand Down
2 changes: 1 addition & 1 deletion engine-guides-exporting-blocks/ExportingBlocks.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import IMGLYEngine

@MainActor
func exportingBlocks(engine: Engine) async throws {
try engine.editor.setSettingString("basePath", value: "https://cdn.img.ly/packages/imgly/cesdk-engine/1.37.0/assets")
try engine.editor.setSettingString("basePath", value: "https://cdn.img.ly/packages/imgly/cesdk-engine/1.38.0/assets")
try await engine.addDefaultAssetSources()
let sceneUrl =
URL(string: "https://cdn.img.ly/assets/demo/v1/ly.img.template/templates/cesdk_postcard_1.scene")!
Expand Down
17 changes: 17 additions & 0 deletions engine-guides-source-sets/SourceSets.swift
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,21 @@ func sourceSets(engine: Engine) async throws {
)

// highlight-apply-asset

// highlight-video-source-sets
let videoFill = try engine.block.createFill(.video)
try engine.block.setSourceSet(videoFill, property: "fill/video/sourceSet", sourceSet: [
.init(
uri: URL(string: "https://img.ly/static/example-assets/sourceset/1x.mp4")!,
width: 1920,
height: 1080
),
])

try await engine.block.addVideoFileURIToSourceSet(
videoFill,
property: "fill/video/sourceSet",
uri: URL(string: "https://img.ly/static/example-assets/sourceset/2x.mp4")!
)
// highlight-video-source-sets
}

0 comments on commit dfabe9e

Please sign in to comment.