From 849a4fa44fe93a184df3c7a392d1aa4ccb7c6a74 Mon Sep 17 00:00:00 2001 From: Angelo Stavrow Date: Fri, 5 Nov 2021 15:12:04 -0400 Subject: [PATCH] Add action extension template for iOS --- .../ActionViewController.swift | 57 ++++++ .../Base.lproj/MainInterface.storyboard | 53 ++++++ ActionExtension-iOS/Info.plist | 28 +++ .../Media.xcassets/Contents.json | 6 + .../TouchBarBezel.colorset/Contents.json | 14 ++ .../project.pbxproj | 180 +++++++++++++++++- .../xcschemes/xcschememanagement.plist | 11 +- 7 files changed, 345 insertions(+), 4 deletions(-) create mode 100644 ActionExtension-iOS/ActionViewController.swift create mode 100644 ActionExtension-iOS/Base.lproj/MainInterface.storyboard create mode 100644 ActionExtension-iOS/Info.plist create mode 100644 ActionExtension-iOS/Media.xcassets/Contents.json create mode 100644 ActionExtension-iOS/Media.xcassets/TouchBarBezel.colorset/Contents.json diff --git a/ActionExtension-iOS/ActionViewController.swift b/ActionExtension-iOS/ActionViewController.swift new file mode 100644 index 0000000..febbdde --- /dev/null +++ b/ActionExtension-iOS/ActionViewController.swift @@ -0,0 +1,57 @@ +// +// ActionViewController.swift +// ActionExtension-iOS +// +// Created by Angelo Stavrow on 2021-11-05. +// + +import UIKit +import MobileCoreServices +import UniformTypeIdentifiers + +class ActionViewController: UIViewController { + + @IBOutlet weak var imageView: UIImageView! + + override func viewDidLoad() { + super.viewDidLoad() + + // Get the item[s] we're handling from the extension context. + + // For example, look for an image and place it into an image view. + // Replace this with something appropriate for the type[s] your extension supports. + var imageFound = false + for item in self.extensionContext!.inputItems as! [NSExtensionItem] { + for provider in item.attachments! { + if provider.hasItemConformingToTypeIdentifier(UTType.image.identifier) { + // This is an image. We'll load it, then place it in our image view. + weak var weakImageView = self.imageView + provider.loadItem(forTypeIdentifier: UTType.image.identifier, options: nil, completionHandler: { (imageURL, error) in + OperationQueue.main.addOperation { + if let strongImageView = weakImageView { + if let imageURL = imageURL as? URL { + strongImageView.image = UIImage(data: try! Data(contentsOf: imageURL)) + } + } + } + }) + + imageFound = true + break + } + } + + if (imageFound) { + // We only handle one image, so stop looking for more. + break + } + } + } + + @IBAction func done() { + // Return any edited content to the host app. + // This template doesn't do anything, so we just echo the passed in items. + self.extensionContext!.completeRequest(returningItems: self.extensionContext!.inputItems, completionHandler: nil) + } + +} diff --git a/ActionExtension-iOS/Base.lproj/MainInterface.storyboard b/ActionExtension-iOS/Base.lproj/MainInterface.storyboard new file mode 100644 index 0000000..b165d3a --- /dev/null +++ b/ActionExtension-iOS/Base.lproj/MainInterface.storyboard @@ -0,0 +1,53 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ActionExtension-iOS/Info.plist b/ActionExtension-iOS/Info.plist new file mode 100644 index 0000000..2c98e4c --- /dev/null +++ b/ActionExtension-iOS/Info.plist @@ -0,0 +1,28 @@ + + + + + NSExtension + + NSExtensionAttributes + + NSExtensionActivationRule + TRUEPREDICATE + NSExtensionServiceAllowsFinderPreviewItem + + NSExtensionServiceAllowsTouchBarItem + + NSExtensionServiceFinderPreviewIconName + NSActionTemplate + NSExtensionServiceTouchBarBezelColorName + TouchBarBezel + NSExtensionServiceTouchBarIconName + NSActionTemplate + + NSExtensionMainStoryboard + MainInterface + NSExtensionPointIdentifier + com.apple.ui-services + + + diff --git a/ActionExtension-iOS/Media.xcassets/Contents.json b/ActionExtension-iOS/Media.xcassets/Contents.json new file mode 100644 index 0000000..73c0059 --- /dev/null +++ b/ActionExtension-iOS/Media.xcassets/Contents.json @@ -0,0 +1,6 @@ +{ + "info" : { + "author" : "xcode", + "version" : 1 + } +} diff --git a/ActionExtension-iOS/Media.xcassets/TouchBarBezel.colorset/Contents.json b/ActionExtension-iOS/Media.xcassets/TouchBarBezel.colorset/Contents.json new file mode 100644 index 0000000..94a9fc2 --- /dev/null +++ b/ActionExtension-iOS/Media.xcassets/TouchBarBezel.colorset/Contents.json @@ -0,0 +1,14 @@ +{ + "info" : { + "version" : 1, + "author" : "xcode" + }, + "colors" : [ + { + "idiom" : "mac", + "color" : { + "reference" : "systemPurpleColor" + } + } + ] +} \ No newline at end of file diff --git a/WriteFreely-MultiPlatform.xcodeproj/project.pbxproj b/WriteFreely-MultiPlatform.xcodeproj/project.pbxproj index 49d55a3..338afe3 100644 --- a/WriteFreely-MultiPlatform.xcodeproj/project.pbxproj +++ b/WriteFreely-MultiPlatform.xcodeproj/project.pbxproj @@ -27,6 +27,11 @@ 171DC677272C7D0B002B9B8A /* UserDefaults+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 171DC676272C7D0B002B9B8A /* UserDefaults+Extensions.swift */; }; 171DC678272C7D0B002B9B8A /* UserDefaults+Extensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 171DC676272C7D0B002B9B8A /* UserDefaults+Extensions.swift */; }; 172C492E2593981900E20ADF /* MacUpdatesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 172C492D2593981900E20ADF /* MacUpdatesView.swift */; }; + 172E10012735B83E00061372 /* UniformTypeIdentifiers.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 172E10002735B83E00061372 /* UniformTypeIdentifiers.framework */; platformFilter = maccatalyst; }; + 172E10042735B83E00061372 /* Media.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 172E10032735B83E00061372 /* Media.xcassets */; }; + 172E10062735B83E00061372 /* ActionViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 172E10052735B83E00061372 /* ActionViewController.swift */; }; + 172E10092735B83E00061372 /* MainInterface.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 172E10072735B83E00061372 /* MainInterface.storyboard */; }; + 172E100D2735B83E00061372 /* ActionExtension-iOS.appex in Embed App Extensions */ = {isa = PBXBuildFile; fileRef = 172E0FFF2735B83E00061372 /* ActionExtension-iOS.appex */; settings = {ATTRIBUTES = (RemoveHeadersOnCopy, ); }; }; 173E19D1254318F600440F0F /* RemoteChangePromptView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 173E19D0254318F600440F0F /* RemoteChangePromptView.swift */; }; 173E19E3254329CC00440F0F /* PostTextEditingView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 173E19E2254329CC00440F0F /* PostTextEditingView.swift */; }; 17466626256C0D0600629997 /* MacEditorTextView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 17466625256C0D0600629997 /* MacEditorTextView.swift */; }; @@ -112,6 +117,13 @@ /* End PBXBuildFile section */ /* Begin PBXContainerItemProxy section */ + 172E100B2735B83E00061372 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 17DF327C24C87D3300BCE2E3 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 172E0FFE2735B83E00061372; + remoteInfo = "ActionExtension-iOS"; + }; 17DF329924C87D3500BCE2E3 /* PBXContainerItemProxy */ = { isa = PBXContainerItemProxy; containerPortal = 17DF327C24C87D3300BCE2E3 /* Project object */; @@ -128,6 +140,20 @@ }; /* End PBXContainerItemProxy section */ +/* Begin PBXCopyFilesBuildPhase section */ + 172E100E2735B83E00061372 /* Embed App Extensions */ = { + isa = PBXCopyFilesBuildPhase; + buildActionMask = 2147483647; + dstPath = ""; + dstSubfolderSpec = 13; + files = ( + 172E100D2735B83E00061372 /* ActionExtension-iOS.appex in Embed App Extensions */, + ); + name = "Embed App Extensions"; + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXCopyFilesBuildPhase section */ + /* Begin PBXFileReference section */ 1709ADDF251B9A110053AF79 /* EditorLaunchingPolicy.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = EditorLaunchingPolicy.md; sourceTree = ""; }; 170A7EC026F5186A00F1CBD4 /* CollectionListModel.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CollectionListModel.swift; sourceTree = ""; }; @@ -139,6 +165,12 @@ 171BFDF924D4AF8300888236 /* CollectionListView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CollectionListView.swift; sourceTree = ""; }; 171DC676272C7D0B002B9B8A /* UserDefaults+Extensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "UserDefaults+Extensions.swift"; sourceTree = ""; }; 172C492D2593981900E20ADF /* MacUpdatesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MacUpdatesView.swift; sourceTree = ""; }; + 172E0FFF2735B83E00061372 /* ActionExtension-iOS.appex */ = {isa = PBXFileReference; explicitFileType = "wrapper.app-extension"; includeInIndex = 0; path = "ActionExtension-iOS.appex"; sourceTree = BUILT_PRODUCTS_DIR; }; + 172E10002735B83E00061372 /* UniformTypeIdentifiers.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = UniformTypeIdentifiers.framework; path = System/Library/Frameworks/UniformTypeIdentifiers.framework; sourceTree = SDKROOT; }; + 172E10032735B83E00061372 /* Media.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Media.xcassets; sourceTree = ""; }; + 172E10052735B83E00061372 /* ActionViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ActionViewController.swift; sourceTree = ""; }; + 172E10082735B83E00061372 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/MainInterface.storyboard; sourceTree = ""; }; + 172E100A2735B83E00061372 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; 173E19D0254318F600440F0F /* RemoteChangePromptView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RemoteChangePromptView.swift; sourceTree = ""; }; 173E19E2254329CC00440F0F /* PostTextEditingView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PostTextEditingView.swift; sourceTree = ""; }; 17466625256C0D0600629997 /* MacEditorTextView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MacEditorTextView.swift; sourceTree = ""; }; @@ -211,6 +243,14 @@ /* End PBXFileReference section */ /* Begin PBXFrameworksBuildPhase section */ + 172E0FFC2735B83E00061372 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + 172E10012735B83E00061372 /* UniformTypeIdentifiers.framework in Frameworks */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 17DF328524C87D3500BCE2E3 /* Frameworks */ = { isa = PBXFrameworksBuildPhase; buildActionMask = 2147483647; @@ -263,6 +303,17 @@ path = Settings; sourceTree = ""; }; + 172E10022735B83E00061372 /* ActionExtension-iOS */ = { + isa = PBXGroup; + children = ( + 172E10032735B83E00061372 /* Media.xcassets */, + 172E10052735B83E00061372 /* ActionViewController.swift */, + 172E10072735B83E00061372 /* MainInterface.storyboard */, + 172E100A2735B83E00061372 /* Info.plist */, + ); + path = "ActionExtension-iOS"; + sourceTree = ""; + }; 1739B8D324EAFAB700DA7421 /* PostEditor */ = { isa = PBXGroup; children = ( @@ -385,6 +436,7 @@ 17DF329124C87D3500BCE2E3 /* macOS */, 17DF329B24C87D3500BCE2E3 /* Tests iOS */, 17DF32A624C87D3500BCE2E3 /* Tests macOS */, + 172E10022735B83E00061372 /* ActionExtension-iOS */, 17DF328924C87D3500BCE2E3 /* Products */, 17DF32C124C87D8D00BCE2E3 /* Frameworks */, ); @@ -416,6 +468,7 @@ 17DF329024C87D3500BCE2E3 /* WriteFreely for Mac.app */, 17DF329824C87D3500BCE2E3 /* Tests iOS.xctest */, 17DF32A324C87D3500BCE2E3 /* Tests macOS.xctest */, + 172E0FFF2735B83E00061372 /* ActionExtension-iOS.appex */, ); name = Products; sourceTree = ""; @@ -467,6 +520,7 @@ 17DF32C124C87D8D00BCE2E3 /* Frameworks */ = { isa = PBXGroup; children = ( + 172E10002735B83E00061372 /* UniformTypeIdentifiers.framework */, ); name = Frameworks; sourceTree = ""; @@ -525,6 +579,23 @@ /* End PBXGroup section */ /* Begin PBXNativeTarget section */ + 172E0FFE2735B83E00061372 /* ActionExtension-iOS */ = { + isa = PBXNativeTarget; + buildConfigurationList = 172E10112735B83E00061372 /* Build configuration list for PBXNativeTarget "ActionExtension-iOS" */; + buildPhases = ( + 172E0FFB2735B83E00061372 /* Sources */, + 172E0FFC2735B83E00061372 /* Frameworks */, + 172E0FFD2735B83E00061372 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = "ActionExtension-iOS"; + productName = "ActionExtension-iOS"; + productReference = 172E0FFF2735B83E00061372 /* ActionExtension-iOS.appex */; + productType = "com.apple.product-type.app-extension"; + }; 17DF328724C87D3500BCE2E3 /* WriteFreely-MultiPlatform (iOS) */ = { isa = PBXNativeTarget; buildConfigurationList = 17DF32B224C87D3500BCE2E3 /* Build configuration list for PBXNativeTarget "WriteFreely-MultiPlatform (iOS)" */; @@ -533,10 +604,12 @@ 17DF328524C87D3500BCE2E3 /* Frameworks */, 17DF328624C87D3500BCE2E3 /* Resources */, 17DF32C424C87E6700BCE2E3 /* ShellScript */, + 172E100E2735B83E00061372 /* Embed App Extensions */, ); buildRules = ( ); dependencies = ( + 172E100C2735B83E00061372 /* PBXTargetDependency */, ); name = "WriteFreely-MultiPlatform (iOS)"; packageProductDependencies = ( @@ -610,9 +683,12 @@ 17DF327C24C87D3300BCE2E3 /* Project object */ = { isa = PBXProject; attributes = { - LastSwiftUpdateCheck = 1200; + LastSwiftUpdateCheck = 1310; LastUpgradeCheck = 1200; TargetAttributes = { + 172E0FFE2735B83E00061372 = { + CreatedOnToolsVersion = 13.1; + }; 17DF328724C87D3500BCE2E3 = { CreatedOnToolsVersion = 12.0; }; @@ -650,11 +726,21 @@ 17DF328F24C87D3500BCE2E3 /* WriteFreely-MultiPlatform (macOS) */, 17DF329724C87D3500BCE2E3 /* Tests iOS */, 17DF32A224C87D3500BCE2E3 /* Tests macOS */, + 172E0FFE2735B83E00061372 /* ActionExtension-iOS */, ); }; /* End PBXProject section */ /* Begin PBXResourcesBuildPhase section */ + 172E0FFD2735B83E00061372 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 172E10042735B83E00061372 /* Media.xcassets in Resources */, + 172E10092735B83E00061372 /* MainInterface.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 17DF328624C87D3500BCE2E3 /* Resources */ = { isa = PBXResourcesBuildPhase; buildActionMask = 2147483647; @@ -739,6 +825,14 @@ /* End PBXShellScriptBuildPhase section */ /* Begin PBXSourcesBuildPhase section */ + 172E0FFB2735B83E00061372 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 172E10062735B83E00061372 /* ActionViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; 17DF328424C87D3500BCE2E3 /* Sources */ = { isa = PBXSourcesBuildPhase; buildActionMask = 2147483647; @@ -853,6 +947,11 @@ /* End PBXSourcesBuildPhase section */ /* Begin PBXTargetDependency section */ + 172E100C2735B83E00061372 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 172E0FFE2735B83E00061372 /* ActionExtension-iOS */; + targetProxy = 172E100B2735B83E00061372 /* PBXContainerItemProxy */; + }; 17DF329A24C87D3500BCE2E3 /* PBXTargetDependency */ = { isa = PBXTargetDependency; target = 17DF328724C87D3500BCE2E3 /* WriteFreely-MultiPlatform (iOS) */; @@ -865,7 +964,75 @@ }; /* End PBXTargetDependency section */ +/* Begin PBXVariantGroup section */ + 172E10072735B83E00061372 /* MainInterface.storyboard */ = { + isa = PBXVariantGroup; + children = ( + 172E10082735B83E00061372 /* Base */, + ); + name = MainInterface.storyboard; + sourceTree = ""; + }; +/* End PBXVariantGroup section */ + /* Begin XCBuildConfiguration section */ + 172E100F2735B83E00061372 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = TPPAB4YBA6; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "ActionExtension-iOS/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "ActionExtension-iOS"; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.abunchtell.WriteFreely-MultiPlatform.ActionExtension-iOS"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 172E10102735B83E00061372 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + CLANG_CXX_LANGUAGE_STANDARD = "gnu++17"; + CODE_SIGN_STYLE = Automatic; + CURRENT_PROJECT_VERSION = 1; + DEVELOPMENT_TEAM = TPPAB4YBA6; + GENERATE_INFOPLIST_FILE = YES; + INFOPLIST_FILE = "ActionExtension-iOS/Info.plist"; + INFOPLIST_KEY_CFBundleDisplayName = "ActionExtension-iOS"; + INFOPLIST_KEY_NSHumanReadableCopyright = ""; + IPHONEOS_DEPLOYMENT_TARGET = 15.0; + LD_RUNPATH_SEARCH_PATHS = ( + "$(inherited)", + "@executable_path/Frameworks", + "@executable_path/../../Frameworks", + ); + MARKETING_VERSION = 1.0; + PRODUCT_BUNDLE_IDENTIFIER = "com.abunchtell.WriteFreely-MultiPlatform.ActionExtension-iOS"; + PRODUCT_NAME = "$(TARGET_NAME)"; + SDKROOT = iphoneos; + SKIP_INSTALL = YES; + SWIFT_EMIT_LOC_STRINGS = YES; + SWIFT_VERSION = 5.0; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; 17DF32B024C87D3500BCE2E3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { @@ -980,6 +1147,7 @@ 17DF32B324C87D3500BCE2E3 /* Debug */ = { isa = XCBuildConfiguration; buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "WriteFreely-MultiPlatform (iOS).entitlements"; @@ -1005,6 +1173,7 @@ 17DF32B424C87D3500BCE2E3 /* Release */ = { isa = XCBuildConfiguration; buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor; CODE_SIGN_ENTITLEMENTS = "WriteFreely-MultiPlatform (iOS).entitlements"; @@ -1172,6 +1341,15 @@ /* End XCBuildConfiguration section */ /* Begin XCConfigurationList section */ + 172E10112735B83E00061372 /* Build configuration list for PBXNativeTarget "ActionExtension-iOS" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 172E100F2735B83E00061372 /* Debug */, + 172E10102735B83E00061372 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; 17DF327F24C87D3300BCE2E3 /* Build configuration list for PBXProject "WriteFreely-MultiPlatform" */ = { isa = XCConfigurationList; buildConfigurations = ( diff --git a/WriteFreely-MultiPlatform.xcodeproj/xcuserdata/angelo.xcuserdatad/xcschemes/xcschememanagement.plist b/WriteFreely-MultiPlatform.xcodeproj/xcuserdata/angelo.xcuserdatad/xcschemes/xcschememanagement.plist index 6cd8075..926b2fa 100644 --- a/WriteFreely-MultiPlatform.xcodeproj/xcuserdata/angelo.xcuserdatad/xcschemes/xcschememanagement.plist +++ b/WriteFreely-MultiPlatform.xcodeproj/xcuserdata/angelo.xcuserdatad/xcschemes/xcschememanagement.plist @@ -4,16 +4,21 @@ SchemeUserState - WriteFreely-MultiPlatform (iOS).xcscheme_^#shared#^_ + ActionExtension-iOS.xcscheme_^#shared#^_ orderHint - 1 + 2 - WriteFreely-MultiPlatform (macOS).xcscheme_^#shared#^_ + WriteFreely-MultiPlatform (iOS).xcscheme_^#shared#^_ orderHint 0 + WriteFreely-MultiPlatform (macOS).xcscheme_^#shared#^_ + + orderHint + 1 +