Skip to content

Commit

Permalink
refactor: switch to #Preview macro
Browse files Browse the repository at this point in the history
  • Loading branch information
bsorrentino committed Mar 20, 2024
1 parent 41f611f commit ec6cb96
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 10 deletions.
6 changes: 2 additions & 4 deletions PlantUML/View+Clipboard.swift
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,6 @@ struct CopyToClipboardButton : View {
}
}

struct View_Clipboard_Previews: PreviewProvider {
static var previews: some View {
CopyToClipboardButton(value: "")
}
#Preview {
CopyToClipboardButton(value: "")
}
26 changes: 20 additions & 6 deletions PlantUMLApp.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -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 */; };
Expand Down Expand Up @@ -164,6 +163,24 @@
path = PlantUMLAppUITests;
sourceTree = "<group>";
};
A07493822BAB04280025B3C9 /* Observable */ = {
isa = PBXGroup;
children = (
A0A42A78289AC37C00E929EB /* PlantUMLObservableDocument.swift */,
A02BB3E72B41C9430073D432 /* OpenAIObservableService.swift */,
);
name = Observable;
sourceTree = "<group>";
};
A07493832BAB04A00025B3C9 /* Representable */ = {
isa = PBXGroup;
children = (
A0A80A752B3ED90A00CB08CA /* SwiftUI+PencilKit.swift */,
A047206E29549ACC007E061F /* SwiftUI+Share.swift */,
);
name = Representable;
sourceTree = "<group>";
};
A077461228C7EF6A007C5C13 /* Frameworks */ = {
isa = PBXGroup;
children = (
Expand Down Expand Up @@ -206,26 +223,24 @@
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 */,
A0D3C64928984A0E000838D7 /* PlantUMLApp.swift */,
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 */,
Expand Down Expand Up @@ -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;
};
Expand Down

0 comments on commit ec6cb96

Please sign in to comment.