Signed-off-by: marinofaggiana <marino@marinofaggiana.com>
This commit is contained in:
marinofaggiana 2021-08-10 18:52:34 +02:00
Родитель f44a21c470
Коммит 4455475c40
3 изменённых файлов: 7 добавлений и 6 удалений

Просмотреть файл

@ -212,7 +212,7 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1110;
LastUpgradeCheck = 1240;
LastUpgradeCheck = 1250;
ORGANIZATIONNAME = "Marino Faggiana";
TargetAttributes = {
F74D5C29235DE83B0006DA38 = {
@ -360,7 +360,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
@ -418,7 +418,7 @@
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 10.0;
IPHONEOS_DEPLOYMENT_TARGET = 12.0;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = iphoneos;

Просмотреть файл

@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<Scheme
LastUpgradeVersion = "1240"
LastUpgradeVersion = "1250"
version = "1.3">
<BuildAction
parallelizeBuildables = "YES"

Просмотреть файл

@ -96,6 +96,7 @@ import MobileCoreServices
public struct UTTypeConformsToServer {
var typeIdentifier: String
var classFile: String
var editor: String
var iconName: String
var name: String
}
@ -232,10 +233,10 @@ import MobileCoreServices
//MARK: - Type Identifier
@objc public func addInternalTypeIdentifier(typeIdentifier: String, classFile: String, iconName: String, name: String) {
@objc public func addInternalTypeIdentifier(typeIdentifier: String, classFile: String, editor: String, iconName: String, name: String) {
if !internalTypeIdentifier.contains(where: { $0.typeIdentifier == typeIdentifier }) {
let newUTI = UTTypeConformsToServer.init(typeIdentifier: typeIdentifier, classFile: classFile, iconName: iconName, name: name)
let newUTI = UTTypeConformsToServer.init(typeIdentifier: typeIdentifier, classFile: classFile, editor: editor, iconName: iconName, name: name)
internalTypeIdentifier.append(newUTI)
}
}