Skip to content

Commit 2e50216

Browse files
committed
Update examples for v1.58.0
1 parent f7c9579 commit 2e50216

File tree

45 files changed

+133
-144
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+133
-144
lines changed

CESDK-Showcases.xcodeproj/project.pbxproj

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@
11091109
path = "engine-guides-uri-resolver";
11101110
sourceTree = "<group>";
11111111
};
1112-
"TEMP_2678CD85-E4E9-49F6-A6CC-3B86DED7ECD1" /* cesdk_swift_examples */ = {
1112+
"TEMP_048F2C5A-3DB4-4A5C-9F0E-7DB916FDC9EF" /* cesdk_swift_examples */ = {
11131113
isa = PBXGroup;
11141114
children = (
11151115
08A9EA956529EFCD7B5C6079 /* editor-guides-configuration-inspector-bar */,
@@ -1553,7 +1553,7 @@
15531553
GCC_WARN_UNUSED_VARIABLE = YES;
15541554
GENERATE_INFOPLIST_FILE = YES;
15551555
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
1556-
MARKETING_VERSION = 1.57.1;
1556+
MARKETING_VERSION = 1.58.0;
15571557
MTL_ENABLE_DEBUG_INFO = NO;
15581558
MTL_FAST_MATH = YES;
15591559
PRODUCT_NAME = "$(TARGET_NAME)";
@@ -1562,7 +1562,7 @@
15621562
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
15631563
SWIFT_COMPILATION_MODE = wholemodule;
15641564
SWIFT_OPTIMIZATION_LEVEL = "-O";
1565-
SWIFT_VERSION = 5.10;
1565+
SWIFT_VERSION = 6.1;
15661566
};
15671567
name = Release;
15681568
};
@@ -1643,7 +1643,7 @@
16431643
GCC_WARN_UNUSED_VARIABLE = YES;
16441644
GENERATE_INFOPLIST_FILE = YES;
16451645
IPHONEOS_DEPLOYMENT_TARGET = 16.0;
1646-
MARKETING_VERSION = 1.57.1;
1646+
MARKETING_VERSION = 1.58.0;
16471647
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
16481648
MTL_FAST_MATH = YES;
16491649
ONLY_ACTIVE_ARCH = YES;
@@ -1653,7 +1653,7 @@
16531653
SUPPORTS_MAC_DESIGNED_FOR_IPHONE_IPAD = NO;
16541654
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
16551655
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
1656-
SWIFT_VERSION = 5.10;
1656+
SWIFT_VERSION = 6.1;
16571657
};
16581658
name = Debug;
16591659
};
@@ -1718,15 +1718,15 @@
17181718
repositoryURL = "https://github.com/imgly/IMGLYUI-swift";
17191719
requirement = {
17201720
kind = exactVersion;
1721-
version = 1.57.1;
1721+
version = 1.58.0;
17221722
};
17231723
};
17241724
10597E39A033ABD8B233CD14 /* XCRemoteSwiftPackageReference "IMGLYEngine-swift" */ = {
17251725
isa = XCRemoteSwiftPackageReference;
17261726
repositoryURL = "https://github.com/imgly/IMGLYEngine-swift";
17271727
requirement = {
17281728
kind = exactVersion;
1729-
version = 1.57.1;
1729+
version = 1.58.0;
17301730
};
17311731
};
17321732
150F161C090426538C39E173 /* XCRemoteSwiftPackageReference "Kingfisher" */ = {

camera-guides-configuration/ConfiguredCameraSolution.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,15 @@ struct ConfiguredCameraSolution: View {
2525
// highlight-maxtotalduration
2626
maxTotalDuration: 30,
2727
// highlight-allowmodeswitching
28-
allowModeSwitching: true
28+
allowModeSwitching: true,
2929
)
3030
// highlight-config
3131

3232
Camera(
3333
settings,
3434
config: config,
3535
// highlight-mode
36-
mode: .standard
36+
mode: .standard,
3737
) { result in
3838
switch result {
3939
case let .success(cameraResult):

camera-guides-quickstart/CameraUIKit.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ class CameraUIKit: UIViewController {
3636
primaryAction: UIAction(title: "Use the Camera") { [unowned self] _ in
3737
camera.modalPresentationStyle = .fullScreen
3838
present(camera, animated: true)
39-
}
39+
},
4040
)
4141
// highlight-modal
4242

editor-guides-configuration-asset-library/DefaultAssetLibraryEditorSolution.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ struct DefaultAssetLibraryEditorSolution: View {
2121
DefaultAssetLibrary(
2222
tabs: DefaultAssetLibrary.Tab.allCases.reversed().filter { tab in
2323
tab != .elements && tab != .uploads
24-
}
24+
},
2525
)
2626
// highlight-defaultAssetLibrary
2727
// highlight-defaultAssetLibraryImages

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.57.1/assets")!
11+
baseURL: URL(string: "https://cdn.img.ly/packages/imgly/cesdk-engine/1.58.0/assets")!,
1212
)
1313

1414
var editor: some View {

editor-guides-configuration-callbacks/CallbacksEditorSolution.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ struct CallbacksEditorSolution: View {
8888
// Write and share file
8989
let url = FileManager.default.temporaryDirectory.appendingPathComponent(
9090
"Export",
91-
conformingTo: mimeType.uniformType
91+
conformingTo: mimeType.uniformType,
9292
)
9393
try data.write(to: url, options: [.atomic])
9494
switch try mainEngine.scene.getMode() {

editor-guides-configuration-canvas-menu/CanvasMenuItemEditorSolution.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ struct CanvasMenuItemEditorSolution: View {
3131
// highlight-customizePredefinedButton-isVisible
3232
isVisible: { context in
3333
try context.engine.block.isAllowedByScope(context.selection.block, key: "lifecycle/destroy")
34-
}
34+
},
3535
// highlight-customizePredefinedButton-isVisible
3636
)
3737
// highlight-customizePredefinedButton
3838

3939
// highlight-newButton
4040
CanvasMenu.Button(
4141
// highlight-newButton-id
42-
id: "my.package.canvasMenu.button.newButton"
42+
id: "my.package.canvasMenu.button.newButton",
4343
// highlight-newButton-action
4444
) { context in
4545
print("New Button action")

editor-guides-configuration-dock/DockItemEditorSolution.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ struct DockItemEditorSolution: View {
2828
// highlight-customizePredefinedButton-isEnabled
2929
isEnabled: { context in true },
3030
// highlight-customizePredefinedButton-isVisible
31-
isVisible: { context in true }
31+
isVisible: { context in true },
3232
)
3333
// highlight-customizePredefinedButton
3434

3535
// highlight-newButton
3636
Dock.Button(
3737
// highlight-newButton-id
38-
id: "my.package.dock.button.newButton"
38+
id: "my.package.dock.button.newButton",
3939
// highlight-newButton-action
4040
) { context in
4141
print("New Button action")

editor-guides-configuration-inspector-bar/InspectorBarItemEditorSolution.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,15 +31,15 @@ struct InspectorBarItemEditorSolution: View {
3131
isVisible: { context in
3232
try context.selection.type == .text &&
3333
context.engine.block.isAllowedByScope(context.selection.block, key: "text/character")
34-
}
34+
},
3535
// highlight-customizePredefinedButton-isVisible
3636
)
3737
// highlight-customizePredefinedButton
3838

3939
// highlight-newButton
4040
InspectorBar.Button(
4141
// highlight-newButton-id
42-
id: "my.package.inspectorBar.button.newButton"
42+
id: "my.package.inspectorBar.button.newButton",
4343
// highlight-newButton-action
4444
) { context in
4545
print("New Button action")

editor-guides-configuration-navigation-bar/DefaultNavigationBarItemsEditorSolution.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ struct DefaultNavigationBarItemsEditorSolution: View {
8383
NavigationBar.ItemGroup(placement: .topBarLeading) {
8484
NavigationBar.Buttons.closeEditor()
8585
NavigationBar.Buttons.previousPage(
86-
label: { _ in NavigationLabel("Design", direction: .backward) }
86+
label: { _ in NavigationLabel("Design", direction: .backward) },
8787
)
8888
}
8989
NavigationBar.ItemGroup(placement: .principal) {
@@ -93,7 +93,7 @@ struct DefaultNavigationBarItemsEditorSolution: View {
9393
}
9494
NavigationBar.ItemGroup(placement: .topBarTrailing) {
9595
NavigationBar.Buttons.nextPage(
96-
label: { _ in NavigationLabel("Write", direction: .forward) }
96+
label: { _ in NavigationLabel("Write", direction: .forward) },
9797
)
9898
NavigationBar.Buttons.export()
9999
}

0 commit comments

Comments
 (0)