Skip to content

Commit

Permalink
Merge branch 'release/2.0.0_2'
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Aug 26, 2023
2 parents 50f1b58 + c3ffc74 commit 2575be1
Show file tree
Hide file tree
Showing 498 changed files with 6,369 additions and 75 deletions.
30 changes: 20 additions & 10 deletions PlantUML/PlantUMLContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@ import SwiftUI
import Combine
import PlantUMLFramework
import PlantUMLKeyboard
import LineEditor
import CodeViewer

import AppSecureStorage
//
// [Managing Focus in SwiftUI List Views](https://peterfriese.dev/posts/swiftui-list-focus/)
Expand All @@ -21,7 +22,7 @@ import AppSecureStorage


struct PlantUMLContentView: View {
typealias PlantUMLLineEditorView = StandardLineEditorView<Symbol>
typealias PlantUMLLineEditorView = CodeViewer

@Environment(\.scenePhase) var scene
@Environment(\.interfaceOrientation) var interfaceOrientation: InterfaceOrientationHolder
Expand All @@ -39,7 +40,7 @@ struct PlantUMLContentView: View {

@State var keyboardTab: String = "general"
@State private var isScaleToFit = true
@State private var fontSize = CGFloat(12)
@State private var fontSize = CGFloat(15)
@State private var showLine:Bool = false
@State private var saving = false
@State private var diagramImage:UIImage?
Expand Down Expand Up @@ -143,13 +144,22 @@ extension PlantUMLContentView {

var EditorView_Fragment: some View {

PlantUMLLineEditorView( text: $document.text,
fontSize: $fontSize,
showLine: $showLine) { onHide, onPressSymbol in
PlantUMLKeyboardView( selectedTab: $keyboardTab,
onHide: onHide,
onPressSymbol: onPressSymbol)
}

PlantUMLLineEditorView( content: $document.text,
mode: .plantuml,
darkTheme: .terminal,
lightTheme: .chrome,
isReadOnly: false,
fontSize: fontSize
)

// PlantUMLLineEditorView( text: $document.text,
// fontSize: $fontSize,
// showLine: $showLine) { onHide, onPressSymbol in
// PlantUMLKeyboardView( selectedTab: $keyboardTab,
// onHide: onHide,
// onPressSymbol: onPressSymbol)
// }
}

// [SwiftUI Let View disappear automatically](https://stackoverflow.com/a/60820491/521197)
Expand Down
33 changes: 13 additions & 20 deletions PlantUML4iPad.xcworkspace/xcshareddata/swiftpm/Package.resolved
Original file line number Diff line number Diff line change
@@ -1,23 +1,16 @@
{
"pins" : [
{
"identity" : "openaikit",
"kind" : "remoteSourceControl",
"location" : "https://github.com/marcodotio/OpenAIKit.git",
"state" : {
"revision" : "9e718bc33f10bc0c0524ae140be6a89651c4ea3d",
"version" : "1.2.0"
"object": {
"pins": [
{
"package": "OpenAIKit",
"repositoryURL": "https://github.com/marcodotio/OpenAIKit.git",
"state": {
"branch": null,
"revision": "9e718bc33f10bc0c0524ae140be6a89651c4ea3d",
"version": "1.2.0"
}
}
},
{
"identity" : "swiftui-lineeditor",
"kind" : "remoteSourceControl",
"location" : "https://github.com/bsorrentino/SwiftUI-LineEditor.git",
"state" : {
"branch" : "develop",
"revision" : "085c8f0122a1061cd2751ef3ec4703a614256ee0"
}
}
],
"version" : 2
]
},
"version": 1
}
53 changes: 13 additions & 40 deletions PlantUMLApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
/* Begin PBXBuildFile section */
A0277C0B293D11D7005435AE /* AsyncImage+Cache.swift in Sources */ = {isa = PBXBuildFile; fileRef = A09A6DDA293D0E5E000856ED /* AsyncImage+Cache.swift */; };
A036CC3D2A0FC67C003FDB5E /* PlantUMLKeyboard in Frameworks */ = {isa = PBXBuildFile; productRef = A084B53329EB15C50043B853 /* PlantUMLKeyboard */; };
A036CC3E2A0FC67C003FDB5E /* LineEditor in Frameworks */ = {isa = PBXBuildFile; productRef = A084B53529EB15C90043B853 /* LineEditor */; };
A036CC3F2A0FC67C003FDB5E /* PlantUMLFramework in Frameworks */ = {isa = PBXBuildFile; productRef = A0BD13F629EB16280048D9C6 /* PlantUMLFramework */; };
A036CF992A92C07A007FDEB6 /* CodeViewer in Frameworks */ = {isa = PBXBuildFile; productRef = A036CF982A92C07A007FDEB6 /* CodeViewer */; };
A038DB5C29D452880032E312 /* OpenAI.xcconfig in Resources */ = {isa = PBXBuildFile; fileRef = A038DB5B29D452880032E312 /* OpenAI.xcconfig */; };
A038DB6029D489BA0032E312 /* PlantUML+OpenAI.swift in Sources */ = {isa = PBXBuildFile; fileRef = A038DB5F29D489BA0032E312 /* PlantUML+OpenAI.swift */; };
A047206F29549ACC007E061F /* SwiftUI+Share.swift in Sources */ = {isa = PBXBuildFile; fileRef = A047206E29549ACC007E061F /* SwiftUI+Share.swift */; };
Expand All @@ -21,7 +21,6 @@
A0943A6F2944A44900342426 /* ScaleToFit+ToggleStyle.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0943A6E2944A44900342426 /* ScaleToFit+ToggleStyle.swift */; };
A09F62DD29DDD08600650C9A /* PlantUMLFramework in Frameworks */ = {isa = PBXBuildFile; productRef = A09F62DC29DDD08600650C9A /* PlantUMLFramework */; };
A09F62DF29DDD08D00650C9A /* PlantUMLKeyboard in Frameworks */ = {isa = PBXBuildFile; productRef = A09F62DE29DDD08D00650C9A /* PlantUMLKeyboard */; };
A09F62E129DDD09400650C9A /* LineEditor in Frameworks */ = {isa = PBXBuildFile; productRef = A09F62E029DDD09400650C9A /* LineEditor */; };
A0A139332A12AD8700B69FBC /* AppSecureStorage in Frameworks */ = {isa = PBXBuildFile; productRef = A0A139322A12AD8700B69FBC /* AppSecureStorage */; };
A0A139352A13C49A00B69FBC /* View+Secure.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0A139342A13C49A00B69FBC /* View+Secure.swift */; };
A0A139362A13C49A00B69FBC /* View+Secure.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0A139342A13C49A00B69FBC /* View+Secure.swift */; };
Expand All @@ -30,7 +29,6 @@
A0BADC7129D4C2740056A098 /* SwiftUI+Conditional.swift in Sources */ = {isa = PBXBuildFile; fileRef = A0BADC7029D4C2740056A098 /* SwiftUI+Conditional.swift */; };
A0BD13F129EB161E0048D9C6 /* PlantUMLFramework in Frameworks */ = {isa = PBXBuildFile; productRef = A0BD13F029EB161E0048D9C6 /* PlantUMLFramework */; };
A0BD13F329EB161E0048D9C6 /* PlantUMLKeyboard in Frameworks */ = {isa = PBXBuildFile; productRef = A0BD13F229EB161E0048D9C6 /* PlantUMLKeyboard */; };
A0BD13F529EB161E0048D9C6 /* LineEditor in Frameworks */ = {isa = PBXBuildFile; productRef = A0BD13F429EB161E0048D9C6 /* LineEditor */; };
A0BFBA9A290D551F008340E3 /* Localizable.strings in Resources */ = {isa = PBXBuildFile; fileRef = A0BFBA9C290D551F008340E3 /* Localizable.strings */; };
A0C5C2E02A0FD05A0038C889 /* PlantUMLAppUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A00729BA29DB2A9D00D73D1A /* PlantUMLAppUITests.swift */; };
A0C5C2E12A0FD05A0038C889 /* PlantUMLAppUITestsLaunchTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = A00729BC29DB2A9D00D73D1A /* PlantUMLAppUITestsLaunchTests.swift */; };
Expand Down Expand Up @@ -70,6 +68,7 @@
A01552A228CF47DF00F2B8A1 /* PlantUMLFramework */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = PlantUMLFramework; sourceTree = "<group>"; };
A01907EF2951CD5C0059CCBE /* privacy_policy.md */ = {isa = PBXFileReference; lastKnownFileType = net.daringfireball.markdown; path = privacy_policy.md; sourceTree = "<group>"; };
A036CC402A0FC67C003FDB5E /* PlantUMLAppUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = PlantUMLAppUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; };
A036CF972A92BCFF007FDEB6 /* PlantUMLEditor */ = {isa = PBXFileReference; lastKnownFileType = wrapper; path = PlantUMLEditor; sourceTree = "<group>"; };
A038DB5B29D452880032E312 /* OpenAI.xcconfig */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xcconfig; path = OpenAI.xcconfig; sourceTree = "<group>"; };
A038DB5F29D489BA0032E312 /* PlantUML+OpenAI.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "PlantUML+OpenAI.swift"; sourceTree = "<group>"; };
A047206E29549ACC007E061F /* SwiftUI+Share.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = "SwiftUI+Share.swift"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -107,7 +106,6 @@
buildActionMask = 2147483647;
files = (
A036CC3F2A0FC67C003FDB5E /* PlantUMLFramework in Frameworks */,
A036CC3E2A0FC67C003FDB5E /* LineEditor in Frameworks */,
A036CC3D2A0FC67C003FDB5E /* PlantUMLKeyboard in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand All @@ -116,18 +114,17 @@
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A0BD13F529EB161E0048D9C6 /* LineEditor in Frameworks */,
A0A139332A12AD8700B69FBC /* AppSecureStorage in Frameworks */,
A0BD13F329EB161E0048D9C6 /* PlantUMLKeyboard in Frameworks */,
A0BD13F129EB161E0048D9C6 /* PlantUMLFramework in Frameworks */,
A036CF992A92C07A007FDEB6 /* CodeViewer in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
A0D3C65628984A10000838D7 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
A09F62E129DDD09400650C9A /* LineEditor in Frameworks */,
A09F62DF29DDD08D00650C9A /* PlantUMLKeyboard in Frameworks */,
A09F62DD29DDD08600650C9A /* PlantUMLFramework in Frameworks */,
);
Expand Down Expand Up @@ -162,6 +159,7 @@
A038DB5B29D452880032E312 /* OpenAI.xcconfig */,
A01907EF2951CD5C0059CCBE /* privacy_policy.md */,
A0943A6D29448A1700342426 /* AppStore.xcassets */,
A036CF972A92BCFF007FDEB6 /* PlantUMLEditor */,
A0A139312A129F5400B69FBC /* AppSecureStorage */,
A01552A228CF47DF00F2B8A1 /* PlantUMLFramework */,
A0EF7AF128C40A6300660F09 /* PlantUMLKeyboard */,
Expand Down Expand Up @@ -244,7 +242,6 @@
name = PlantUMLAppUITests;
packageProductDependencies = (
A084B53329EB15C50043B853 /* PlantUMLKeyboard */,
A084B53529EB15C90043B853 /* LineEditor */,
A0BD13F629EB16280048D9C6 /* PlantUMLFramework */,
);
productName = PlantUMLAppUITests;
Expand All @@ -267,8 +264,8 @@
packageProductDependencies = (
A0BD13F029EB161E0048D9C6 /* PlantUMLFramework */,
A0BD13F229EB161E0048D9C6 /* PlantUMLKeyboard */,
A0BD13F429EB161E0048D9C6 /* LineEditor */,
A0A139322A12AD8700B69FBC /* AppSecureStorage */,
A036CF982A92C07A007FDEB6 /* CodeViewer */,
);
productName = PlantUML;
productReference = A0D3C64628984A0E000838D7 /* PlantUMLApp.app */;
Expand All @@ -291,7 +288,6 @@
packageProductDependencies = (
A09F62DC29DDD08600650C9A /* PlantUMLFramework */,
A09F62DE29DDD08D00650C9A /* PlantUMLKeyboard */,
A09F62E029DDD09400650C9A /* LineEditor */,
);
productName = PlantUMLTests;
productReference = A0D3C65928984A10000838D7 /* PlantUMLTests.xctest */;
Expand Down Expand Up @@ -330,7 +326,6 @@
);
mainGroup = A0D3C63D28984A0E000838D7;
packageReferences = (
A0F4ADE229DDC455003FC055 /* XCRemoteSwiftPackageReference "SwiftUI-LineEditor" */,
);
productRefGroup = A0D3C64728984A0E000838D7 /* Products */;
projectDirPath = "";
Expand Down Expand Up @@ -612,7 +607,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"PlantUML/Preview Content\"";
DEVELOPMENT_TEAM = 48J595L9BX;
ENABLE_PREVIEWS = YES;
Expand All @@ -630,7 +625,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 2.0.0;
PRODUCT_BUNDLE_IDENTIFIER = org.bsc.PlantUML;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand All @@ -649,7 +644,7 @@
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
ASSETCATALOG_COMPILER_GLOBAL_ACCENT_COLOR_NAME = AccentColor;
CODE_SIGN_STYLE = Automatic;
CURRENT_PROJECT_VERSION = 1;
CURRENT_PROJECT_VERSION = 2;
DEVELOPMENT_ASSET_PATHS = "\"PlantUML/Preview Content\"";
DEVELOPMENT_TEAM = 48J595L9BX;
ENABLE_PREVIEWS = YES;
Expand All @@ -668,7 +663,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
MARKETING_VERSION = 1.4.1;
MARKETING_VERSION = 2.0.0;
PRODUCT_BUNDLE_IDENTIFIER = org.bsc.PlantUML;
PRODUCT_NAME = "$(TARGET_NAME)";
SUPPORTED_PLATFORMS = "iphoneos iphonesimulator";
Expand Down Expand Up @@ -767,26 +762,14 @@
};
/* End XCConfigurationList section */

/* Begin XCRemoteSwiftPackageReference section */
A0F4ADE229DDC455003FC055 /* XCRemoteSwiftPackageReference "SwiftUI-LineEditor" */ = {
isa = XCRemoteSwiftPackageReference;
repositoryURL = "https://github.com/bsorrentino/SwiftUI-LineEditor.git";
requirement = {
kind = exactVersion;
version = 1.1.0;
};
};
/* End XCRemoteSwiftPackageReference section */

/* Begin XCSwiftPackageProductDependency section */
A084B53329EB15C50043B853 /* PlantUMLKeyboard */ = {
A036CF982A92C07A007FDEB6 /* CodeViewer */ = {
isa = XCSwiftPackageProductDependency;
productName = PlantUMLKeyboard;
productName = CodeViewer;
};
A084B53529EB15C90043B853 /* LineEditor */ = {
A084B53329EB15C50043B853 /* PlantUMLKeyboard */ = {
isa = XCSwiftPackageProductDependency;
package = A0F4ADE229DDC455003FC055 /* XCRemoteSwiftPackageReference "SwiftUI-LineEditor" */;
productName = LineEditor;
productName = PlantUMLKeyboard;
};
A09F62DC29DDD08600650C9A /* PlantUMLFramework */ = {
isa = XCSwiftPackageProductDependency;
Expand All @@ -796,11 +779,6 @@
isa = XCSwiftPackageProductDependency;
productName = PlantUMLKeyboard;
};
A09F62E029DDD09400650C9A /* LineEditor */ = {
isa = XCSwiftPackageProductDependency;
package = A0F4ADE229DDC455003FC055 /* XCRemoteSwiftPackageReference "SwiftUI-LineEditor" */;
productName = LineEditor;
};
A0A139322A12AD8700B69FBC /* AppSecureStorage */ = {
isa = XCSwiftPackageProductDependency;
productName = AppSecureStorage;
Expand All @@ -813,11 +791,6 @@
isa = XCSwiftPackageProductDependency;
productName = PlantUMLKeyboard;
};
A0BD13F429EB161E0048D9C6 /* LineEditor */ = {
isa = XCSwiftPackageProductDependency;
package = A0F4ADE229DDC455003FC055 /* XCRemoteSwiftPackageReference "SwiftUI-LineEditor" */;
productName = LineEditor;
};
A0BD13F629EB16280048D9C6 /* PlantUMLFramework */ = {
isa = XCSwiftPackageProductDependency;
productName = PlantUMLFramework;
Expand Down
9 changes: 9 additions & 0 deletions PlantUMLEditor/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
.DS_Store
/.build
/Packages
/*.xcodeproj
xcuserdata/
DerivedData/
.swiftpm/config/registries.json
.swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata
.netrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"colors" : [
{
"idiom" : "universal"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
Loading

0 comments on commit 2575be1

Please sign in to comment.