From 2554814bd9adc6366a3602d49a9e668d719bad6e Mon Sep 17 00:00:00 2001 From: Nick Lockwood Date: Wed, 27 Apr 2022 19:41:31 +0100 Subject: [PATCH] Move Welcome text to resource file --- ShapeScript.xcodeproj/project.pbxproj | 4 ++ Viewer/Base.lproj/Main.storyboard | 66 ++------------------------- Viewer/Utilities.swift | 6 +++ Viewer/Welcome.rtf | 14 ++++++ Viewer/WelcomeViewController.swift | 4 +- 5 files changed, 32 insertions(+), 62 deletions(-) create mode 100644 Viewer/Welcome.rtf diff --git a/ShapeScript.xcodeproj/project.pbxproj b/ShapeScript.xcodeproj/project.pbxproj index 4cf51867..62fb56fb 100644 --- a/ShapeScript.xcodeproj/project.pbxproj +++ b/ShapeScript.xcodeproj/project.pbxproj @@ -55,6 +55,7 @@ 01F1A6182806BD1A00A1621B /* StandardLibraryTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01F1A6172806BD1A00A1621B /* StandardLibraryTests.swift */; }; 01F1A703280AD2BA00A1621B /* StringMatchingTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01F1A702280AD2BA00A1621B /* StringMatchingTests.swift */; }; 01F1A7A5280F724600A1621B /* Material+Brightness.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01F1A7A1280F724600A1621B /* Material+Brightness.swift */; }; + 01F1A8AD2819C37000A1621B /* Welcome.rtf in Resources */ = {isa = PBXBuildFile; fileRef = 01F1A8A82819C37000A1621B /* Welcome.rtf */; }; 01FDE3CE26BD73A000A46F66 /* LRUCache.framework in Copy Frameworks */ = {isa = PBXBuildFile; fileRef = 01FDE3C026BD736700A46F66 /* LRUCache.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; }; 01FDE3CF26BD73AA00A46F66 /* LRUCache.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 01FDE3C026BD736700A46F66 /* LRUCache.framework */; }; 01FDE3D526BD766C00A46F66 /* GeometryCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = 01FDE3D426BD766C00A46F66 /* GeometryCache.swift */; }; @@ -236,6 +237,7 @@ 01F1A6172806BD1A00A1621B /* StandardLibraryTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StandardLibraryTests.swift; sourceTree = ""; }; 01F1A702280AD2BA00A1621B /* StringMatchingTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = StringMatchingTests.swift; sourceTree = ""; }; 01F1A7A1280F724600A1621B /* Material+Brightness.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = "Material+Brightness.swift"; sourceTree = ""; }; + 01F1A8A82819C37000A1621B /* Welcome.rtf */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.rtf; path = Welcome.rtf; sourceTree = ""; }; 01FDE3B626BD736700A46F66 /* LRUCache.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; path = LRUCache.xcodeproj; sourceTree = ""; }; 01FDE3D426BD766C00A46F66 /* GeometryCache.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = GeometryCache.swift; sourceTree = ""; }; /* End PBXFileReference section */ @@ -309,6 +311,7 @@ 0152E5CF2145009A0082A5A3 /* Main.storyboard */, 0152E5D22145009A0082A5A3 /* Info.plist */, 0152E5D32145009A0082A5A3 /* Viewer.entitlements */, + 01F1A8A82819C37000A1621B /* Welcome.rtf */, ); path = Viewer; sourceTree = ""; @@ -621,6 +624,7 @@ buildActionMask = 2147483647; files = ( 0152E5D12145009A0082A5A3 /* Main.storyboard in Resources */, + 01F1A8AD2819C37000A1621B /* Welcome.rtf in Resources */, 0152E5CE2145009A0082A5A3 /* Assets.xcassets in Resources */, 01BD9437219367D2005FFAEC /* Examples in Resources */, ); diff --git a/Viewer/Base.lproj/Main.storyboard b/Viewer/Base.lproj/Main.storyboard index f0467884..700bfaa0 100644 --- a/Viewer/Base.lproj/Main.storyboard +++ b/Viewer/Base.lproj/Main.storyboard @@ -1,8 +1,8 @@ - + - + @@ -1193,7 +1193,7 @@ - + @@ -1268,7 +1268,7 @@