From ec6cb96dad9aefa2b2e4cebd74729bbabf000663 Mon Sep 17 00:00:00 2001 From: bsorrentino Date: Wed, 20 Mar 2024 13:07:19 +0100 Subject: [PATCH] refactor: switch to #Preview macro --- PlantUML/View+Clipboard.swift | 6 ++---- PlantUMLApp.xcodeproj/project.pbxproj | 26 ++++++++++++++++++++------ 2 files changed, 22 insertions(+), 10 deletions(-) diff --git a/PlantUML/View+Clipboard.swift b/PlantUML/View+Clipboard.swift index 24a56a7..52ad994 100644 --- a/PlantUML/View+Clipboard.swift +++ b/PlantUML/View+Clipboard.swift @@ -45,8 +45,6 @@ struct CopyToClipboardButton : View { } } -struct View_Clipboard_Previews: PreviewProvider { - static var previews: some View { - CopyToClipboardButton(value: "") - } +#Preview { + CopyToClipboardButton(value: "") } diff --git a/PlantUMLApp.xcodeproj/project.pbxproj b/PlantUMLApp.xcodeproj/project.pbxproj index b6adec0..06a63b2 100644 --- a/PlantUMLApp.xcodeproj/project.pbxproj +++ b/PlantUMLApp.xcodeproj/project.pbxproj @@ -14,7 +14,6 @@ A004332F2BA5FC23000954B3 /* PlantUMLKeyboard in Frameworks */ = {isa = PBXBuildFile; productRef = A004332E2BA5FC23000954B3 /* PlantUMLKeyboard */; }; A0277C0B293D11D7005435AE /* AsyncImage+Cache.swift in Sources */ = {isa = PBXBuildFile; fileRef = A09A6DDA293D0E5E000856ED /* AsyncImage+Cache.swift */; }; A02BB3E82B41C9430073D432 /* OpenAIObservableService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A02BB3E72B41C9430073D432 /* OpenAIObservableService.swift */; }; - A02BB3E92B41C9430073D432 /* OpenAIObservableService.swift in Sources */ = {isa = PBXBuildFile; fileRef = A02BB3E72B41C9430073D432 /* OpenAIObservableService.swift */; }; A036CC3D2A0FC67C003FDB5E /* PlantUMLKeyboard in Frameworks */ = {isa = PBXBuildFile; productRef = A084B53329EB15C50043B853 /* PlantUMLKeyboard */; }; A036CC3F2A0FC67C003FDB5E /* PlantUMLFramework in Frameworks */ = {isa = PBXBuildFile; productRef = A0BD13F629EB16280048D9C6 /* PlantUMLFramework */; }; A038DB6029D489BA0032E312 /* PlantUMLOpenAIView.swift in Sources */ = {isa = PBXBuildFile; fileRef = A038DB5F29D489BA0032E312 /* PlantUMLOpenAIView.swift */; }; @@ -164,6 +163,24 @@ path = PlantUMLAppUITests; sourceTree = ""; }; + A07493822BAB04280025B3C9 /* Observable */ = { + isa = PBXGroup; + children = ( + A0A42A78289AC37C00E929EB /* PlantUMLObservableDocument.swift */, + A02BB3E72B41C9430073D432 /* OpenAIObservableService.swift */, + ); + name = Observable; + sourceTree = ""; + }; + A07493832BAB04A00025B3C9 /* Representable */ = { + isa = PBXGroup; + children = ( + A0A80A752B3ED90A00CB08CA /* SwiftUI+PencilKit.swift */, + A047206E29549ACC007E061F /* SwiftUI+Share.swift */, + ); + name = Representable; + sourceTree = ""; + }; A077461228C7EF6A007C5C13 /* Frameworks */ = { isa = PBXGroup; children = ( @@ -206,14 +223,14 @@ A0D3C64828984A0E000838D7 /* PlantUML */ = { isa = PBXGroup; children = ( + A07493832BAB04A00025B3C9 /* Representable */, + A07493822BAB04280025B3C9 /* Observable */, A0C0C3272B5D95DD00CE66A2 /* Errors.swift */, A0C0C3492B5DA7A200CE66A2 /* ActivityView.swift */, A0A139342A13C49A00B69FBC /* View+Secure.swift */, A068572D29D8B31100E82C2F /* View+Clipboard.swift */, A08AA78329561170004DE329 /* View+UIImage.swift */, - A047206E29549ACC007E061F /* SwiftUI+Share.swift */, A0BADC7029D4C2740056A098 /* SwiftUI+Conditional.swift */, - A0A80A752B3ED90A00CB08CA /* SwiftUI+PencilKit.swift */, A0943A6E2944A44900342426 /* ScaleToFit+ToggleStyle.swift */, A0F2B14129353C2D00A44481 /* SwiftUI+Rotate.swift */, A09A6DDA293D0E5E000856ED /* AsyncImage+Cache.swift */, @@ -221,11 +238,9 @@ A0D3C64B28984A0E000838D7 /* PlantUMLDocument.swift */, A04512F02B3DFCB900CD1158 /* PlantUMLDiagramMenu.swift */, A04512F22B3E2D8E00CD1158 /* PlantUMLDrawingView.swift */, - A0A42A78289AC37C00E929EB /* PlantUMLObservableDocument.swift */, A0D3C64D28984A0E000838D7 /* PlantUMLDocumentView.swift */, A0A42A75289ABC2D00E929EB /* PlantUMLDiagramView.swift */, A038DB5F29D489BA0032E312 /* PlantUMLOpenAIView.swift */, - A02BB3E72B41C9430073D432 /* OpenAIObservableService.swift */, A0BFBA9C290D551F008340E3 /* Localizable.strings */, A0D3C64F28984A10000838D7 /* Assets.xcassets */, A082CAFF2A9A68D80055D6D6 /* Settings.bundle */, @@ -448,7 +463,6 @@ A0D3C65E28984A10000838D7 /* PlantUMLTests.swift in Sources */, A0C0C34B2B5DA7A200CE66A2 /* ActivityView.swift in Sources */, A0C0C3292B5D95DD00CE66A2 /* Errors.swift in Sources */, - A02BB3E92B41C9430073D432 /* OpenAIObservableService.swift in Sources */, ); runOnlyForDeploymentPostprocessing = 0; };