From af32804d6a593c209651578c7a1d943c83b9d33e Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Oct 2020 21:46:29 -0700 Subject: [PATCH 1/2] swiftui previews --- Examples/ShapesExamples iOS/AppDelegate.swift | 27 - .../AppIcon.appiconset/Contents.json | 98 --- .../Assets.xcassets/Contents.json | 6 - .../first.imageset/Contents.json | 12 - .../Assets.xcassets/first.imageset/first.pdf | Bin 2465 -> 0 bytes .../second.imageset/Contents.json | 12 - .../second.imageset/second.pdf | Bin 2423 -> 0 bytes .../Base.lproj/LaunchScreen.storyboard | 25 - Examples/ShapesExamples iOS/ContentView.swift | 42 -- Examples/ShapesExamples iOS/Info.plist | 70 -- .../Preview Assets.xcassets/Contents.json | 6 - .../ShapesExamples iOS/SceneDelegate.swift | 56 -- .../ShapesExamples macOS/AppDelegate.swift | 30 - .../AppIcon.appiconset/Contents.json | 58 -- .../Assets.xcassets/Contents.json | 6 - .../Base.lproj/Main.storyboard | 683 ----------------- .../ShapesExamples macOS/ContentView.swift | 35 - Examples/ShapesExamples macOS/Info.plist | 34 - .../Preview Assets.xcassets/Contents.json | 6 - .../ShapesExamples_macOS.entitlements | 10 - .../ShapesExamples.xcodeproj/project.pbxproj | 712 ------------------ .../contents.xcworkspacedata | 7 - .../xcshareddata/IDEWorkspaceChecks.plist | 8 - .../xcshareddata/swiftpm/Package.resolved | 16 - Examples/ShapesExamples/LinesView.swift | 31 - Examples/ShapesExamples/PatternsView.swift | 38 - .../ShapesExamples/RegularPolygonsView.swift | 39 - Package.swift | 20 +- Sources/Shapes/Lines/QuadCurve.swift | 2 +- Sources/Shapes/Other/HalfCapsule.swift | 1 + Sources/Shapes/Path/Path+QuadCurves.swift | 1 - Sources/Shapes/Patterns/GridPattern.swift | 29 + Sources/Shapes/RegularPolygons/Decagon.swift | 6 + Sources/Shapes/RegularPolygons/Heptagon.swift | 6 + Sources/Shapes/RegularPolygons/Hexagon.swift | 6 + Sources/Shapes/RegularPolygons/Nonagon.swift | 6 + Sources/Shapes/RegularPolygons/Octagon.swift | 6 + Sources/Shapes/RegularPolygons/Pentagon.swift | 6 + .../RegularPolygons/RegularPolygon.swift | 29 + Tests/LinuxMain.swift | 7 - Tests/ShapesTests/ShapesTests.swift | 11 - Tests/ShapesTests/XCTestManifests.swift | 9 - 42 files changed, 99 insertions(+), 2113 deletions(-) delete mode 100644 Examples/ShapesExamples iOS/AppDelegate.swift delete mode 100644 Examples/ShapesExamples iOS/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 Examples/ShapesExamples iOS/Assets.xcassets/Contents.json delete mode 100644 Examples/ShapesExamples iOS/Assets.xcassets/first.imageset/Contents.json delete mode 100644 Examples/ShapesExamples iOS/Assets.xcassets/first.imageset/first.pdf delete mode 100644 Examples/ShapesExamples iOS/Assets.xcassets/second.imageset/Contents.json delete mode 100644 Examples/ShapesExamples iOS/Assets.xcassets/second.imageset/second.pdf delete mode 100644 Examples/ShapesExamples iOS/Base.lproj/LaunchScreen.storyboard delete mode 100644 Examples/ShapesExamples iOS/ContentView.swift delete mode 100644 Examples/ShapesExamples iOS/Info.plist delete mode 100644 Examples/ShapesExamples iOS/Preview Content/Preview Assets.xcassets/Contents.json delete mode 100644 Examples/ShapesExamples iOS/SceneDelegate.swift delete mode 100644 Examples/ShapesExamples macOS/AppDelegate.swift delete mode 100644 Examples/ShapesExamples macOS/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 Examples/ShapesExamples macOS/Assets.xcassets/Contents.json delete mode 100644 Examples/ShapesExamples macOS/Base.lproj/Main.storyboard delete mode 100644 Examples/ShapesExamples macOS/ContentView.swift delete mode 100644 Examples/ShapesExamples macOS/Info.plist delete mode 100644 Examples/ShapesExamples macOS/Preview Content/Preview Assets.xcassets/Contents.json delete mode 100644 Examples/ShapesExamples macOS/ShapesExamples_macOS.entitlements delete mode 100644 Examples/ShapesExamples.xcodeproj/project.pbxproj delete mode 100644 Examples/ShapesExamples.xcodeproj/project.xcworkspace/contents.xcworkspacedata delete mode 100644 Examples/ShapesExamples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist delete mode 100644 Examples/ShapesExamples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved delete mode 100644 Examples/ShapesExamples/LinesView.swift delete mode 100644 Examples/ShapesExamples/PatternsView.swift delete mode 100644 Examples/ShapesExamples/RegularPolygonsView.swift delete mode 100644 Tests/LinuxMain.swift delete mode 100644 Tests/ShapesTests/ShapesTests.swift delete mode 100644 Tests/ShapesTests/XCTestManifests.swift diff --git a/Examples/ShapesExamples iOS/AppDelegate.swift b/Examples/ShapesExamples iOS/AppDelegate.swift deleted file mode 100644 index 0f5dfb7..0000000 --- a/Examples/ShapesExamples iOS/AppDelegate.swift +++ /dev/null @@ -1,27 +0,0 @@ -import UIKit - -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate { - - func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool { - // Override point for customization after application launch. - return true - } - - // MARK: UISceneSession Lifecycle - - func application(_ application: UIApplication, configurationForConnecting connectingSceneSession: UISceneSession, options: UIScene.ConnectionOptions) -> UISceneConfiguration { - // Called when a new scene session is being created. - // Use this method to select a configuration to create the new scene with. - return UISceneConfiguration(name: "Default Configuration", sessionRole: connectingSceneSession.role) - } - - func application(_ application: UIApplication, didDiscardSceneSessions sceneSessions: Set) { - // Called when the user discards a scene session. - // If any sessions were discarded while the application was not running, this will be called shortly after application:didFinishLaunchingWithOptions. - // Use this method to release any resources that were specific to the discarded scenes, as they will not return. - } - - -} - diff --git a/Examples/ShapesExamples iOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/ShapesExamples iOS/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index d8db8d6..0000000 --- a/Examples/ShapesExamples iOS/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,98 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "20x20", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "scale" : "3x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "scale" : "3x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "29x29", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "40x40", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "76x76", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "83.5x83.5", - "scale" : "2x" - }, - { - "idiom" : "ios-marketing", - "size" : "1024x1024", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Examples/ShapesExamples iOS/Assets.xcassets/Contents.json b/Examples/ShapesExamples iOS/Assets.xcassets/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/Examples/ShapesExamples iOS/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Examples/ShapesExamples iOS/Assets.xcassets/first.imageset/Contents.json b/Examples/ShapesExamples iOS/Assets.xcassets/first.imageset/Contents.json deleted file mode 100644 index 33a7451..0000000 --- a/Examples/ShapesExamples iOS/Assets.xcassets/first.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "first.pdf" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Examples/ShapesExamples iOS/Assets.xcassets/first.imageset/first.pdf b/Examples/ShapesExamples iOS/Assets.xcassets/first.imageset/first.pdf deleted file mode 100644 index 47d911dea647d55983671ead4d08b6f6b3600715..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2465 zcmai03se(l7FLvisY+L#f-EBsK`11Xkc1=%MIujmB|xQ!>5vQ%APFP`Mlf5nSPOKE z2-^C>7DZkM!J;Da5{kfrC?Kvp3J41-3shFXvhuJqKo*oer*r0H{{P-P_x0cTzLzjD!bE z0qT;#Q7l4Gy%fMoXJaKT`@{5#R(MOqJPwQifv8iK6A%Ot9L14h2`38T!2s4PM=1!< zmL06}VYAA|ay#jZRs>HpA%X+eQW4rufWU%d1w5GTy!X#LeZsF_+~ccZmn3Fi)v^Z; zIG;?uU*yLLEYs61tjD>gXOFvSWsh{48xJvPNqKrIJtMdCz2cA2aC7TF?b@K`V!Lw- zE;zpH&ApqhoRjAHt}gK}>(qAc8dvrkD31*`<5<%C(&4_LqhQ3-GOf8~n^leG?+-@@^pjPa$J2gW@O)!b9hdTJ zTauyIJ&~rqeEZC1p9dWgx7{_WRc2=drMO=wcT7B{Zd58z`d)r_36r4V<6PGkCjpGfbnVMtm@;b}F!T?)Qav$_y7H5T;Mf!T}M zWxP9TNqrV?e5;b|pWd3^u2KAatk&3aDB@0 zZBaQNdCZ2#fblzYZnRCCjQ-GQWb-s8bX&<)?SxnUGdDYVFVk`xIf7@g3~$DX`H71_;r5OSZz1p`$_8y_9 z{;MJJ+n=>7Ewg;GnGHoz)&ID0z@F2!e$F7cWQ?d6s(!VY)_Gw})xCyMvsD={5i&H* zAIr_ACo8;Se6<*!-mm9Am79Iz^RVlc?%S5sg|E*SyIV{dd9{Mpf#d3cih5WKt=%ps zBEo)bt8EjmeCFYJRYU|b7d`p+-V|X2wOCYtyLP6t=!WH-kgdf0A};ytPfZiCwVPx{ z`g;zpe{8a4RQxQUwVU02<4X3w|9h;}XjhGWquqn{vVqq8g{*}BQF9=ybe_TM*!M=rFs1pN)yzctIXAoicsCe6>fit>wgZ#vp^hZOY0`J`rx zwdSK?GwR_xm9;5XjH|vf{O+Yg-)z;s*xt>;-vU`D-_SK<=~4eEVQkV~57{vyH6ebu>DqwE~Mx_A31Lg~$ zy`i52ew?GEluE%AN>ju*5z~dx2QQLP-G+E>o|En2+s&<^4*d zWD+<8PXs_Jp7_5Dpi(Gg3J?M;%Rn0{dcxQRh!ip+iHJ_e`!bM1MGxwI8Iedr+x>wI zq@&04fsADHfBccq^gpm8Q_u-~Uj|Z$YwSR(^_mzUb!}Xb2Cj`uqphg}v_Y%?Fs=;= zWq3s{hy)Tu!ji@RJsd$C+G{F6V2j1*Xk+7xo|LO7M2yb)(wc=%x-AclP9pLsbTF7m tf?*P!2EjJu5MD57P32Q4pdJ3tO_shCDT2=K;$ebx8ymcd$v!V9{2$sQiO>K5 diff --git a/Examples/ShapesExamples iOS/Assets.xcassets/second.imageset/Contents.json b/Examples/ShapesExamples iOS/Assets.xcassets/second.imageset/Contents.json deleted file mode 100644 index 03bd9c9..0000000 --- a/Examples/ShapesExamples iOS/Assets.xcassets/second.imageset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "filename" : "second.pdf" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Examples/ShapesExamples iOS/Assets.xcassets/second.imageset/second.pdf b/Examples/ShapesExamples iOS/Assets.xcassets/second.imageset/second.pdf deleted file mode 100644 index 401614e288b4b160471c2776bed6f09762af3e1c..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2423 zcmai02~-nz8dqq7rWU#)x2z)&iMWtV?gK$2a)?|BP!TbkV}J-Gl1wmy+3G9S0=uOY zwCjai6uBOPMMdNiN`VDYKwLQr2#W^`R93*Ua=0^)EGYY4=grIf|KIohziYnv{elnR zdN_hk6db<(+3RPcxs!iut8c(j0TLh=9mY931H^rhEE0|aXo!dh5Iv+ZFr+}9F+v#P zLSnfD0$f~hN>~92V{z)WJA&2)5rW!|I?;o?oI*%zejJiuY>hFLQwKlAa9O+PnPh#% zJp~JAfs-De6u@;{cREMs}D-sGib_4>50m8_|Uj-zC0m@Qx zJV+^5Da4Qxpf3sBtKZs<_aI$Cb1T+h<->yL^rfiGNelYkqgC3#SqVP_iy*_RPcbjH)xYf zvYdC-)D_t8c{=5%;$VJQxs_#61J*kuXMC?|&PbPo-7uSxoNr~&J94|gKk+03JGXXM zx4w~=^VUzWqQveu_ilRgPdgNNdnLZCH`=;w91}cP5ihdm*B_jI+rk=Pz2Lk!)XUu| zkls3P5&YHJ!t0kF+MUVBHOAx)a zy|JxHNd37z*~b5#%*0w_F|#4?erNP;pG`Fevoq2%?9Y>%Cmzv1(ks;aPIGaiy1mhU zr{7lB^Mem&`QK{b{uiDC zLD8muY(FNk{YdV|zO#o_VB%);8|~Bh(Z4p?GM}g-HN2;q7~YNl-lD~HZ$taYw$Fzbn6c?c5eo=@`i>()el#qwB)hI-gp0 ztsw@dh-I5NJkk)RCoBC`L8ffKfY)=oG=#4LA9TO6eA}9~@a6dupB+=S{%s&NY}^0GY`hAqod)uxXHitrN%bWOJohV>t?!&Z#d4y^7J@=Oh`HV zee**4j>xRUd)|D0^I-B#<`m1-5PO{)!v(q?ecFYqr_8Q{+z7#n0uFbq%_?hZ-Ck(6NRn=vDS7Nb1Xxx_)9`!i- zGR>av*PJ+P_AGO*a_$FbtCCISg5PK44p&W#t$)+HVcxpR9LAL%_Pv$p`0tO*sYZD0 zCG3-ipr4WoVbjpw%Nf^r^rnWcDcjumgBPEjO;NM6QtZ8wU#0rjHx5zs%CahF4$W*U zxu!q8kYP+>v!BNPVIRJUGIWU@7qVvx2VZDw4gV8%z%bjpF#aF(W|PmliwlakuRq>= zhaCRc^R!7T)#Twb0{!Tns=CxGcGX|leErg`f3|v0eBXxHU&6Sj-_>zOL!!d+j5Xt* zPS;rWd^zEF{5d5%)nNK=)zFJ8Uc=aQKD%UK)_TNes1Gh{SD*Mb_@O` z7*zs9Uq~Vq?v|^8FcM-yLGMKzR3YFB0z@CFM2X-dio%Gu6&MJj=I?uS7sA3AdE^p8 zE49$PjJzPIJwfn;jso7X2#jynr3dO@p5QAK1O9wqKLC=PkQjj~p#n|-5O`ihbTzzu zL{}2QEe28pJYfVZRW56FL`LvO&|C^1Th{0}hQMW$Ng$QPpnzlwnMnf=kVy8(y==L% zLMa>r0gELdT - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/ShapesExamples iOS/ContentView.swift b/Examples/ShapesExamples iOS/ContentView.swift deleted file mode 100644 index 42cace6..0000000 --- a/Examples/ShapesExamples iOS/ContentView.swift +++ /dev/null @@ -1,42 +0,0 @@ -import SwiftUI - -struct ContentView: View { - @State private var selection = 0 - - var body: some View { - TabView(selection: $selection) { - RegularPolygonsView() - .tabItem { - VStack { - Image(systemName: "square.fill.on.square.fill") - Text("RegularPolygons") - } - } - .tag(0) - - LinesView() - .tabItem { - VStack { - Image(systemName: "arrow.swap") - Text("Lines") - } - } - .tag(1) - - PatternsView() - .tabItem { - VStack { - Image(systemName: "rectangle.split.3x3") - Text("Patterns") - } - } - .tag(2) - } - } -} - -struct ContentView_Previews: PreviewProvider { - static var previews: some View { - ContentView() - } -} diff --git a/Examples/ShapesExamples iOS/Info.plist b/Examples/ShapesExamples iOS/Info.plist deleted file mode 100644 index 49e8f4a..0000000 --- a/Examples/ShapesExamples iOS/Info.plist +++ /dev/null @@ -1,70 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSRequiresIPhoneOS - - UIApplicationSceneManifest - - UIApplicationSupportsMultipleScenes - - UISceneConfigurations - - UIWindowSceneSessionRoleApplication - - - UISceneConfigurationName - Default Configuration - UISceneDelegateClassName - $(PRODUCT_MODULE_NAME).SceneDelegate - - - - - UILaunchStoryboardName - LaunchScreen - UIRequiredDeviceCapabilities - - armv7 - - UIStatusBarTintParameters - - UINavigationBar - - Style - UIBarStyleDefault - Translucent - - - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportedInterfaceOrientations~ipad - - UIInterfaceOrientationPortrait - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - - diff --git a/Examples/ShapesExamples iOS/Preview Content/Preview Assets.xcassets/Contents.json b/Examples/ShapesExamples iOS/Preview Content/Preview Assets.xcassets/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/Examples/ShapesExamples iOS/Preview Content/Preview Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Examples/ShapesExamples iOS/SceneDelegate.swift b/Examples/ShapesExamples iOS/SceneDelegate.swift deleted file mode 100644 index dcee5d0..0000000 --- a/Examples/ShapesExamples iOS/SceneDelegate.swift +++ /dev/null @@ -1,56 +0,0 @@ -import UIKit -import SwiftUI - -class SceneDelegate: UIResponder, UIWindowSceneDelegate { - - var window: UIWindow? - - - func scene(_ scene: UIScene, willConnectTo session: UISceneSession, options connectionOptions: UIScene.ConnectionOptions) { - // Use this method to optionally configure and attach the UIWindow `window` to the provided UIWindowScene `scene`. - // If using a storyboard, the `window` property will automatically be initialized and attached to the scene. - // This delegate does not imply the connecting scene or session are new (see `application:configurationForConnectingSceneSession` instead). - - // Create the SwiftUI view that provides the window contents. - let contentView = ContentView() - - // Use a UIHostingController as window root view controller. - if let windowScene = scene as? UIWindowScene { - let window = UIWindow(windowScene: windowScene) - window.rootViewController = UIHostingController(rootView: contentView) - self.window = window - window.makeKeyAndVisible() - } - } - - func sceneDidDisconnect(_ scene: UIScene) { - // Called as the scene is being released by the system. - // This occurs shortly after the scene enters the background, or when its session is discarded. - // Release any resources associated with this scene that can be re-created the next time the scene connects. - // The scene may re-connect later, as its session was not neccessarily discarded (see `application:didDiscardSceneSessions` instead). - } - - func sceneDidBecomeActive(_ scene: UIScene) { - // Called when the scene has moved from an inactive state to an active state. - // Use this method to restart any tasks that were paused (or not yet started) when the scene was inactive. - } - - func sceneWillResignActive(_ scene: UIScene) { - // Called when the scene will move from an active state to an inactive state. - // This may occur due to temporary interruptions (ex. an incoming phone call). - } - - func sceneWillEnterForeground(_ scene: UIScene) { - // Called as the scene transitions from the background to the foreground. - // Use this method to undo the changes made on entering the background. - } - - func sceneDidEnterBackground(_ scene: UIScene) { - // Called as the scene transitions from the foreground to the background. - // Use this method to save data, release shared resources, and store enough scene-specific state information - // to restore the scene back to its current state. - } - - -} - diff --git a/Examples/ShapesExamples macOS/AppDelegate.swift b/Examples/ShapesExamples macOS/AppDelegate.swift deleted file mode 100644 index a49723a..0000000 --- a/Examples/ShapesExamples macOS/AppDelegate.swift +++ /dev/null @@ -1,30 +0,0 @@ -import Cocoa -import SwiftUI - -@NSApplicationMain -class AppDelegate: NSObject, NSApplicationDelegate { - - var window: NSWindow! - - func applicationDidFinishLaunching(_ aNotification: Notification) { - // Create the SwiftUI view that provides the window contents. - let contentView = ContentView() - - // Create the window and set the content view. - window = NSWindow( - contentRect: NSRect(x: 0, y: 0, width: 480, height: 300), - styleMask: [.titled, .closable, .miniaturizable, .resizable, .fullSizeContentView], - backing: .buffered, defer: false) - window.center() - window.setFrameAutosaveName("Main Window") - window.contentView = NSHostingView(rootView: contentView) - window.makeKeyAndOrderFront(nil) - } - - func applicationWillTerminate(_ aNotification: Notification) { - // Insert code here to tear down your application - } - - -} - diff --git a/Examples/ShapesExamples macOS/Assets.xcassets/AppIcon.appiconset/Contents.json b/Examples/ShapesExamples macOS/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index 2db2b1c..0000000 --- a/Examples/ShapesExamples macOS/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "images" : [ - { - "idiom" : "mac", - "size" : "16x16", - "scale" : "1x" - }, - { - "idiom" : "mac", - "size" : "16x16", - "scale" : "2x" - }, - { - "idiom" : "mac", - "size" : "32x32", - "scale" : "1x" - }, - { - "idiom" : "mac", - "size" : "32x32", - "scale" : "2x" - }, - { - "idiom" : "mac", - "size" : "128x128", - "scale" : "1x" - }, - { - "idiom" : "mac", - "size" : "128x128", - "scale" : "2x" - }, - { - "idiom" : "mac", - "size" : "256x256", - "scale" : "1x" - }, - { - "idiom" : "mac", - "size" : "256x256", - "scale" : "2x" - }, - { - "idiom" : "mac", - "size" : "512x512", - "scale" : "1x" - }, - { - "idiom" : "mac", - "size" : "512x512", - "scale" : "2x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Examples/ShapesExamples macOS/Assets.xcassets/Contents.json b/Examples/ShapesExamples macOS/Assets.xcassets/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/Examples/ShapesExamples macOS/Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Examples/ShapesExamples macOS/Base.lproj/Main.storyboard b/Examples/ShapesExamples macOS/Base.lproj/Main.storyboard deleted file mode 100644 index 5c1d06d..0000000 --- a/Examples/ShapesExamples macOS/Base.lproj/Main.storyboard +++ /dev/null @@ -1,683 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Default - - - - - - - Left to Right - - - - - - - Right to Left - - - - - - - - - - - Default - - - - - - - Left to Right - - - - - - - Right to Left - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/Examples/ShapesExamples macOS/ContentView.swift b/Examples/ShapesExamples macOS/ContentView.swift deleted file mode 100644 index 4017dd5..0000000 --- a/Examples/ShapesExamples macOS/ContentView.swift +++ /dev/null @@ -1,35 +0,0 @@ -import SwiftUI - -struct ContentView: View { - @State private var selection = 0 - - var body: some View { - TabView(selection: $selection) { - RegularPolygonsView() - .tabItem { - Text("RegularPolygons") - } - .tag(0) - - LinesView() - .tabItem { - Text("Lines") - } - .tag(1) - - PatternsView() - .tabItem { - Text("Patterns") - } - .tag(2) - } - .frame(maxWidth: .infinity, maxHeight: .infinity) - } -} - - -struct ContentView_Previews: PreviewProvider { - static var previews: some View { - ContentView() - } -} diff --git a/Examples/ShapesExamples macOS/Info.plist b/Examples/ShapesExamples macOS/Info.plist deleted file mode 100644 index e87993d..0000000 --- a/Examples/ShapesExamples macOS/Info.plist +++ /dev/null @@ -1,34 +0,0 @@ - - - - - CFBundleDevelopmentRegion - $(DEVELOPMENT_LANGUAGE) - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIconFile - - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - $(PRODUCT_BUNDLE_PACKAGE_TYPE) - CFBundleShortVersionString - 1.0 - CFBundleVersion - 1 - LSMinimumSystemVersion - $(MACOSX_DEPLOYMENT_TARGET) - NSMainStoryboardFile - Main - NSPrincipalClass - NSApplication - NSSupportsAutomaticTermination - - NSSupportsSuddenTermination - - - diff --git a/Examples/ShapesExamples macOS/Preview Content/Preview Assets.xcassets/Contents.json b/Examples/ShapesExamples macOS/Preview Content/Preview Assets.xcassets/Contents.json deleted file mode 100644 index da4a164..0000000 --- a/Examples/ShapesExamples macOS/Preview Content/Preview Assets.xcassets/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/Examples/ShapesExamples macOS/ShapesExamples_macOS.entitlements b/Examples/ShapesExamples macOS/ShapesExamples_macOS.entitlements deleted file mode 100644 index f2ef3ae..0000000 --- a/Examples/ShapesExamples macOS/ShapesExamples_macOS.entitlements +++ /dev/null @@ -1,10 +0,0 @@ - - - - - com.apple.security.app-sandbox - - com.apple.security.files.user-selected.read-only - - - diff --git a/Examples/ShapesExamples.xcodeproj/project.pbxproj b/Examples/ShapesExamples.xcodeproj/project.pbxproj deleted file mode 100644 index 5c49012..0000000 --- a/Examples/ShapesExamples.xcodeproj/project.pbxproj +++ /dev/null @@ -1,712 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 52; - objects = { - -/* Begin PBXBuildFile section */ - FA86726E238DE61500226819 /* RegularPolygonsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA86726D238DE61500226819 /* RegularPolygonsView.swift */; }; - FA86726F238DE61500226819 /* RegularPolygonsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA86726D238DE61500226819 /* RegularPolygonsView.swift */; }; - FA867271238DE6CD00226819 /* LinesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA867270238DE6CD00226819 /* LinesView.swift */; }; - FA867272238DE6CD00226819 /* LinesView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FA867270238DE6CD00226819 /* LinesView.swift */; }; - FABCDB592364DF8400842ED9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABCDB582364DF8400842ED9 /* AppDelegate.swift */; }; - FABCDB5B2364DF8400842ED9 /* SceneDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABCDB5A2364DF8400842ED9 /* SceneDelegate.swift */; }; - FABCDB5D2364DF8400842ED9 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABCDB5C2364DF8400842ED9 /* ContentView.swift */; }; - FABCDB5F2364DF8500842ED9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FABCDB5E2364DF8500842ED9 /* Assets.xcassets */; }; - FABCDB622364DF8500842ED9 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FABCDB612364DF8500842ED9 /* Preview Assets.xcassets */; }; - FABCDB652364DF8500842ED9 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FABCDB632364DF8500842ED9 /* LaunchScreen.storyboard */; }; - FABCDB6C2364DFD100842ED9 /* Shapes in Frameworks */ = {isa = PBXBuildFile; productRef = FABCDB6B2364DFD100842ED9 /* Shapes */; }; - FABCDB752364E11E00842ED9 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABCDB742364E11E00842ED9 /* AppDelegate.swift */; }; - FABCDB772364E11E00842ED9 /* ContentView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FABCDB762364E11E00842ED9 /* ContentView.swift */; }; - FABCDB792364E11F00842ED9 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FABCDB782364E11F00842ED9 /* Assets.xcassets */; }; - FABCDB7C2364E11F00842ED9 /* Preview Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = FABCDB7B2364E11F00842ED9 /* Preview Assets.xcassets */; }; - FABCDB7F2364E11F00842ED9 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = FABCDB7D2364E11F00842ED9 /* Main.storyboard */; }; - FABCDB872364E16500842ED9 /* Shapes in Frameworks */ = {isa = PBXBuildFile; productRef = FABCDB862364E16500842ED9 /* Shapes */; }; - FAFBB70F2393106600E70575 /* PatternsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAFBB70E2393106600E70575 /* PatternsView.swift */; }; - FAFBB7102393106600E70575 /* PatternsView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FAFBB70E2393106600E70575 /* PatternsView.swift */; }; -/* End PBXBuildFile section */ - -/* Begin PBXFileReference section */ - FA86726D238DE61500226819 /* RegularPolygonsView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = RegularPolygonsView.swift; sourceTree = ""; }; - FA867270238DE6CD00226819 /* LinesView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LinesView.swift; sourceTree = ""; }; - FABCDB552364DF8400842ED9 /* ShapesExamples iOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ShapesExamples iOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - FABCDB582364DF8400842ED9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - FABCDB5A2364DF8400842ED9 /* SceneDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = SceneDelegate.swift; sourceTree = ""; }; - FABCDB5C2364DF8400842ED9 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; - FABCDB5E2364DF8500842ED9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - FABCDB612364DF8500842ED9 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - FABCDB642364DF8500842ED9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = ""; }; - FABCDB662364DF8500842ED9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - FABCDB6D2364DFDF00842ED9 /* Shapes */ = {isa = PBXFileReference; lastKnownFileType = folder; name = Shapes; path = ..; sourceTree = ""; }; - FABCDB722364E11E00842ED9 /* ShapesExamples macOS.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = "ShapesExamples macOS.app"; sourceTree = BUILT_PRODUCTS_DIR; }; - FABCDB742364E11E00842ED9 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = ""; }; - FABCDB762364E11E00842ED9 /* ContentView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ContentView.swift; sourceTree = ""; }; - FABCDB782364E11F00842ED9 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = ""; }; - FABCDB7B2364E11F00842ED9 /* Preview Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = "Preview Assets.xcassets"; sourceTree = ""; }; - FABCDB7E2364E11F00842ED9 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = ""; }; - FABCDB802364E11F00842ED9 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - FABCDB812364E11F00842ED9 /* ShapesExamples_macOS.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = ShapesExamples_macOS.entitlements; sourceTree = ""; }; - FAFBB70E2393106600E70575 /* PatternsView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = PatternsView.swift; sourceTree = ""; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - FABCDB522364DF8400842ED9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - FABCDB6C2364DFD100842ED9 /* Shapes in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FABCDB6F2364E11E00842ED9 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - FABCDB872364E16500842ED9 /* Shapes in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - FABCDB4A2364DF0600842ED9 = { - isa = PBXGroup; - children = ( - FABCDB882364E17400842ED9 /* ShapesExamples */, - FABCDB572364DF8400842ED9 /* ShapesExamples iOS */, - FABCDB732364E11E00842ED9 /* ShapesExamples macOS */, - FABCDB562364DF8400842ED9 /* Products */, - FABCDB6D2364DFDF00842ED9 /* Shapes */, - FABCDB852364E16500842ED9 /* Frameworks */, - ); - sourceTree = ""; - }; - FABCDB562364DF8400842ED9 /* Products */ = { - isa = PBXGroup; - children = ( - FABCDB552364DF8400842ED9 /* ShapesExamples iOS.app */, - FABCDB722364E11E00842ED9 /* ShapesExamples macOS.app */, - ); - name = Products; - sourceTree = ""; - }; - FABCDB572364DF8400842ED9 /* ShapesExamples iOS */ = { - isa = PBXGroup; - children = ( - FABCDB582364DF8400842ED9 /* AppDelegate.swift */, - FABCDB5A2364DF8400842ED9 /* SceneDelegate.swift */, - FABCDB5C2364DF8400842ED9 /* ContentView.swift */, - FABCDB5E2364DF8500842ED9 /* Assets.xcassets */, - FABCDB632364DF8500842ED9 /* LaunchScreen.storyboard */, - FABCDB662364DF8500842ED9 /* Info.plist */, - FABCDB602364DF8500842ED9 /* Preview Content */, - ); - path = "ShapesExamples iOS"; - sourceTree = ""; - }; - FABCDB602364DF8500842ED9 /* Preview Content */ = { - isa = PBXGroup; - children = ( - FABCDB612364DF8500842ED9 /* Preview Assets.xcassets */, - ); - path = "Preview Content"; - sourceTree = ""; - }; - FABCDB732364E11E00842ED9 /* ShapesExamples macOS */ = { - isa = PBXGroup; - children = ( - FABCDB742364E11E00842ED9 /* AppDelegate.swift */, - FABCDB762364E11E00842ED9 /* ContentView.swift */, - FABCDB782364E11F00842ED9 /* Assets.xcassets */, - FABCDB7D2364E11F00842ED9 /* Main.storyboard */, - FABCDB802364E11F00842ED9 /* Info.plist */, - FABCDB812364E11F00842ED9 /* ShapesExamples_macOS.entitlements */, - FABCDB7A2364E11F00842ED9 /* Preview Content */, - ); - path = "ShapesExamples macOS"; - sourceTree = ""; - }; - FABCDB7A2364E11F00842ED9 /* Preview Content */ = { - isa = PBXGroup; - children = ( - FABCDB7B2364E11F00842ED9 /* Preview Assets.xcassets */, - ); - path = "Preview Content"; - sourceTree = ""; - }; - FABCDB852364E16500842ED9 /* Frameworks */ = { - isa = PBXGroup; - children = ( - ); - name = Frameworks; - sourceTree = ""; - }; - FABCDB882364E17400842ED9 /* ShapesExamples */ = { - isa = PBXGroup; - children = ( - FA86726D238DE61500226819 /* RegularPolygonsView.swift */, - FA867270238DE6CD00226819 /* LinesView.swift */, - FAFBB70E2393106600E70575 /* PatternsView.swift */, - ); - path = ShapesExamples; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - FABCDB542364DF8400842ED9 /* ShapesExamples iOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = FABCDB692364DF8500842ED9 /* Build configuration list for PBXNativeTarget "ShapesExamples iOS" */; - buildPhases = ( - FABCDB512364DF8400842ED9 /* Sources */, - FABCDB522364DF8400842ED9 /* Frameworks */, - FABCDB532364DF8400842ED9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "ShapesExamples iOS"; - packageProductDependencies = ( - FABCDB6B2364DFD100842ED9 /* Shapes */, - ); - productName = "ShapesExamples iOS"; - productReference = FABCDB552364DF8400842ED9 /* ShapesExamples iOS.app */; - productType = "com.apple.product-type.application"; - }; - FABCDB712364E11E00842ED9 /* ShapesExamples macOS */ = { - isa = PBXNativeTarget; - buildConfigurationList = FABCDB842364E11F00842ED9 /* Build configuration list for PBXNativeTarget "ShapesExamples macOS" */; - buildPhases = ( - FABCDB6E2364E11E00842ED9 /* Sources */, - FABCDB6F2364E11E00842ED9 /* Frameworks */, - FABCDB702364E11E00842ED9 /* Resources */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = "ShapesExamples macOS"; - packageProductDependencies = ( - FABCDB862364E16500842ED9 /* Shapes */, - ); - productName = "ShapesExamples macOS"; - productReference = FABCDB722364E11E00842ED9 /* ShapesExamples macOS.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - FABCDB4B2364DF0600842ED9 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 1110; - LastUpgradeCheck = 1120; - TargetAttributes = { - FABCDB542364DF8400842ED9 = { - CreatedOnToolsVersion = 11.1; - }; - FABCDB712364E11E00842ED9 = { - CreatedOnToolsVersion = 11.1; - }; - }; - }; - buildConfigurationList = FABCDB4E2364DF0600842ED9 /* Build configuration list for PBXProject "ShapesExamples" */; - compatibilityVersion = "Xcode 9.3"; - developmentRegion = en; - hasScannedForEncodings = 0; - knownRegions = ( - en, - Base, - ); - mainGroup = FABCDB4A2364DF0600842ED9; - packageReferences = ( - FABCDB6A2364DFD100842ED9 /* XCRemoteSwiftPackageReference "Shapes" */, - ); - productRefGroup = FABCDB562364DF8400842ED9 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - FABCDB542364DF8400842ED9 /* ShapesExamples iOS */, - FABCDB712364E11E00842ED9 /* ShapesExamples macOS */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - FABCDB532364DF8400842ED9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - FABCDB652364DF8500842ED9 /* LaunchScreen.storyboard in Resources */, - FABCDB622364DF8500842ED9 /* Preview Assets.xcassets in Resources */, - FABCDB5F2364DF8500842ED9 /* Assets.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FABCDB702364E11E00842ED9 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - FABCDB7F2364E11F00842ED9 /* Main.storyboard in Resources */, - FABCDB7C2364E11F00842ED9 /* Preview Assets.xcassets in Resources */, - FABCDB792364E11F00842ED9 /* Assets.xcassets in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - FABCDB512364DF8400842ED9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - FA867271238DE6CD00226819 /* LinesView.swift in Sources */, - FABCDB592364DF8400842ED9 /* AppDelegate.swift in Sources */, - FABCDB5B2364DF8400842ED9 /* SceneDelegate.swift in Sources */, - FABCDB5D2364DF8400842ED9 /* ContentView.swift in Sources */, - FA86726E238DE61500226819 /* RegularPolygonsView.swift in Sources */, - FAFBB70F2393106600E70575 /* PatternsView.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; - FABCDB6E2364E11E00842ED9 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - FA86726F238DE61500226819 /* RegularPolygonsView.swift in Sources */, - FA867272238DE6CD00226819 /* LinesView.swift in Sources */, - FABCDB772364E11E00842ED9 /* ContentView.swift in Sources */, - FAFBB7102393106600E70575 /* PatternsView.swift in Sources */, - FABCDB752364E11E00842ED9 /* AppDelegate.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - FABCDB632364DF8500842ED9 /* LaunchScreen.storyboard */ = { - isa = PBXVariantGroup; - children = ( - FABCDB642364DF8500842ED9 /* Base */, - ); - name = LaunchScreen.storyboard; - sourceTree = ""; - }; - FABCDB7D2364E11F00842ED9 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - FABCDB7E2364E11F00842ED9 /* Base */, - ); - name = Main.storyboard; - sourceTree = ""; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - FABCDB4F2364DF0600842ED9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - ONLY_ACTIVE_ARCH = YES; - }; - name = Debug; - }; - FABCDB502364DF0600842ED9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - }; - name = Release; - }; - FABCDB672364DF8500842ED9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_STYLE = Automatic; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_ASSET_PATHS = "\"ShapesExamples iOS/Preview Content\""; - ENABLE_PREVIEWS = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - INFOPLIST_FILE = "ShapesExamples iOS/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 13.1; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_BUNDLE_IDENTIFIER = "com.swiftuiextensions.shapes.examples.ios.ShapesExamples-iOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - }; - name = Debug; - }; - FABCDB682364DF8500842ED9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_STYLE = Automatic; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_ASSET_PATHS = "\"ShapesExamples iOS/Preview Content\""; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_PREVIEWS = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - INFOPLIST_FILE = "ShapesExamples iOS/Info.plist"; - IPHONEOS_DEPLOYMENT_TARGET = 13.1; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/Frameworks", - ); - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = "com.swiftuiextensions.shapes.examples.ios.ShapesExamples-iOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = iphoneos; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 5.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - }; - name = Release; - }; - FABCDB822364E11F00842ED9 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_ENTITLEMENTS = "ShapesExamples macOS/ShapesExamples_macOS.entitlements"; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - DEVELOPMENT_ASSET_PATHS = "\"ShapesExamples macOS/Preview Content\""; - ENABLE_PREVIEWS = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - INFOPLIST_FILE = "ShapesExamples macOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 10.15; - MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE; - MTL_FAST_MATH = YES; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_BUNDLE_IDENTIFIER = "com.swiftuiextensions.shapes.examples.macos.ShapesExamples-macOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_VERSION = 5.0; - }; - name = Debug; - }; - FABCDB832364E11F00842ED9 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ANALYZER_NONNULL = YES; - CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE; - CLANG_CXX_LANGUAGE_STANDARD = "gnu++14"; - CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_ENABLE_OBJC_WEAK = YES; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = YES; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_ENTITLEMENTS = "ShapesExamples macOS/ShapesExamples_macOS.entitlements"; - CODE_SIGN_IDENTITY = "-"; - CODE_SIGN_STYLE = Automatic; - COMBINE_HIDPI_IMAGES = YES; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym"; - DEVELOPMENT_ASSET_PATHS = "\"ShapesExamples macOS/Preview Content\""; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_PREVIEWS = YES; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu11; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - INFOPLIST_FILE = "ShapesExamples macOS/Info.plist"; - LD_RUNPATH_SEARCH_PATHS = ( - "$(inherited)", - "@executable_path/../Frameworks", - ); - MACOSX_DEPLOYMENT_TARGET = 10.15; - MTL_ENABLE_DEBUG_INFO = NO; - MTL_FAST_MATH = YES; - PRODUCT_BUNDLE_IDENTIFIER = "com.swiftuiextensions.shapes.examples.macos.ShapesExamples-macOS"; - PRODUCT_NAME = "$(TARGET_NAME)"; - SDKROOT = macosx; - SWIFT_COMPILATION_MODE = wholemodule; - SWIFT_OPTIMIZATION_LEVEL = "-O"; - SWIFT_VERSION = 5.0; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - FABCDB4E2364DF0600842ED9 /* Build configuration list for PBXProject "ShapesExamples" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - FABCDB4F2364DF0600842ED9 /* Debug */, - FABCDB502364DF0600842ED9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - FABCDB692364DF8500842ED9 /* Build configuration list for PBXNativeTarget "ShapesExamples iOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - FABCDB672364DF8500842ED9 /* Debug */, - FABCDB682364DF8500842ED9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; - FABCDB842364E11F00842ED9 /* Build configuration list for PBXNativeTarget "ShapesExamples macOS" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - FABCDB822364E11F00842ED9 /* Debug */, - FABCDB832364E11F00842ED9 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Release; - }; -/* End XCConfigurationList section */ - -/* Begin XCRemoteSwiftPackageReference section */ - FABCDB6A2364DFD100842ED9 /* XCRemoteSwiftPackageReference "Shapes" */ = { - isa = XCRemoteSwiftPackageReference; - repositoryURL = "git@github.com:SwiftUIExtensions/Shapes.git"; - requirement = { - kind = upToNextMajorVersion; - minimumVersion = 0.0.1; - }; - }; -/* End XCRemoteSwiftPackageReference section */ - -/* Begin XCSwiftPackageProductDependency section */ - FABCDB6B2364DFD100842ED9 /* Shapes */ = { - isa = XCSwiftPackageProductDependency; - package = FABCDB6A2364DFD100842ED9 /* XCRemoteSwiftPackageReference "Shapes" */; - productName = Shapes; - }; - FABCDB862364E16500842ED9 /* Shapes */ = { - isa = XCSwiftPackageProductDependency; - productName = Shapes; - }; -/* End XCSwiftPackageProductDependency section */ - }; - rootObject = FABCDB4B2364DF0600842ED9 /* Project object */; -} diff --git a/Examples/ShapesExamples.xcodeproj/project.xcworkspace/contents.xcworkspacedata b/Examples/ShapesExamples.xcodeproj/project.xcworkspace/contents.xcworkspacedata deleted file mode 100644 index 919434a..0000000 --- a/Examples/ShapesExamples.xcodeproj/project.xcworkspace/contents.xcworkspacedata +++ /dev/null @@ -1,7 +0,0 @@ - - - - - diff --git a/Examples/ShapesExamples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist b/Examples/ShapesExamples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist deleted file mode 100644 index 18d9810..0000000 --- a/Examples/ShapesExamples.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist +++ /dev/null @@ -1,8 +0,0 @@ - - - - - IDEDidComputeMac32BitWarning - - - diff --git a/Examples/ShapesExamples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved b/Examples/ShapesExamples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved deleted file mode 100644 index 9f8a029..0000000 --- a/Examples/ShapesExamples.xcodeproj/project.xcworkspace/xcshareddata/swiftpm/Package.resolved +++ /dev/null @@ -1,16 +0,0 @@ -{ - "object": { - "pins": [ - { - "package": "Shapes", - "repositoryURL": "git@github.com:SwiftUIExtensions/Shapes.git", - "state": { - "branch": null, - "revision": "29d9c8a0a6b85c7f44e71561ca3509b2203e44e9", - "version": "0.0.1" - } - } - ] - }, - "version": 1 -} diff --git a/Examples/ShapesExamples/LinesView.swift b/Examples/ShapesExamples/LinesView.swift deleted file mode 100644 index 5ca131a..0000000 --- a/Examples/ShapesExamples/LinesView.swift +++ /dev/null @@ -1,31 +0,0 @@ -import SwiftUI -import Shapes - -struct LinesView: View { - var body: some View { - ScrollView { - Line(unitPoints: [ - UnitPoint(x: 0.0, y: 0.1), - UnitPoint(x: 0.5, y: 0.9), - UnitPoint(x: 1.0, y: 0.1) - ]) - .stroke(Color.red, style: .init(lineWidth: 4, lineCap: .round)) - .frame(height: 200) - .padding() - - QuadCurve(unitData: [ - 0.1, 0.9, 0.1 - ]) - .stroke(Color.blue, style: .init(lineWidth: 2, lineCap: .round)) - .frame(height: 200) - .padding() - } - - } -} - -struct LinesView_Previews: PreviewProvider { - static var previews: some View { - LinesView() - } -} diff --git a/Examples/ShapesExamples/PatternsView.swift b/Examples/ShapesExamples/PatternsView.swift deleted file mode 100644 index 4aea2ef..0000000 --- a/Examples/ShapesExamples/PatternsView.swift +++ /dev/null @@ -1,38 +0,0 @@ -import SwiftUI -import Shapes - -struct PatternsView: View { - var body: some View { - ScrollView { - GridPattern(horizontalLines: 20, verticalLines: 40) - .stroke(Color.white.opacity(0.3), style: .init(lineWidth: 1, lineCap: .round)) - .frame(height: 200) - .background(Color.blue) - .padding() - - - LinearGradient(gradient: Gradient(colors: [.orange, .red, .blue, .purple]), startPoint: .topLeading, endPoint: .bottomTrailing) - .frame(height: 200) - .clipShape( - GridPattern(horizontalLines: 25, verticalLines: 25).inset(by: 1).stroke(lineWidth: 1) - ) - .padding() - - LinearGradient(gradient: Gradient(colors: [.purple, .red, .orange]), startPoint: .topLeading, endPoint: .bottomTrailing) - .frame(height: 200) - .clipShape( - GridPattern(horizontalLines: 10) - .inset(by: 2) - .stroke(style: .init(lineWidth: 4, lineCap: .round, lineJoin: .round, miterLimit: 2, dash: [10], dashPhase: 0)) - ) - .padding() - - } - } -} - -struct PatternsView_Previews: PreviewProvider { - static var previews: some View { - PatternsView() - } -} diff --git a/Examples/ShapesExamples/RegularPolygonsView.swift b/Examples/ShapesExamples/RegularPolygonsView.swift deleted file mode 100644 index 9819937..0000000 --- a/Examples/ShapesExamples/RegularPolygonsView.swift +++ /dev/null @@ -1,39 +0,0 @@ -import SwiftUI -import Shapes - -struct RegularPolygonsView: View { - var body: some View { - HStack(alignment: .center, spacing: 16) { - RegularPolygon(sides: 4) - .strokeBorder(lineWidth: 20) - .foregroundColor(.blue) - - Pentagon() - .strokeBorder(lineWidth: 20) - .foregroundColor(.yellow) - - Hexagon() - .foregroundColor(.orange) - - Heptagon() - .foregroundColor(.blue) - - Octagon() - .foregroundColor(.pink) - - Nonagon() - .foregroundColor(.red) - - Decagon() - .foregroundColor(.green) - } - .frame(height: 100) - .padding() - } -} - -struct ShapesView_Previews: PreviewProvider { - static var previews: some View { - RegularPolygonsView() - } -} diff --git a/Package.swift b/Package.swift index 6254afb..c2e2592 100644 --- a/Package.swift +++ b/Package.swift @@ -6,26 +6,12 @@ import PackageDescription let package = Package( name: "Shapes", platforms: [ - .iOS(.v13), .macOS(.v10_15), .watchOS(.v6) + .iOS(.v13), .macOS(.v10_15), .tvOS(.v13), .watchOS(.v6) ], products: [ - // Products define the executables and libraries produced by a package, and make them visible to other packages. - .library( - name: "Shapes", - targets: ["Shapes"]), - ], - dependencies: [ - // Dependencies declare other packages that this package depends on. - // .package(url: /* package url */, from: "1.0.0"), + .library(name: "Shapes", targets: ["Shapes"]) ], targets: [ - // Targets are the basic building blocks of a package. A target can define a module or a test suite. - // Targets can depend on other targets in this package, and on products in packages which this package depends on. - .target( - name: "Shapes", - dependencies: []), - .testTarget( - name: "ShapesTests", - dependencies: ["Shapes"]), + .target(name: "Shapes", dependencies: []) ] ) diff --git a/Sources/Shapes/Lines/QuadCurve.swift b/Sources/Shapes/Lines/QuadCurve.swift index 113c05b..0240dda 100644 --- a/Sources/Shapes/Lines/QuadCurve.swift +++ b/Sources/Shapes/Lines/QuadCurve.swift @@ -21,7 +21,7 @@ public extension QuadCurve { } } -struct Curve_Previews: PreviewProvider { +struct QuadCurve_Previews: PreviewProvider { static var previews: some View { QuadCurve(unitPoints: [ UnitPoint(x: 0.1, y: 0.1), diff --git a/Sources/Shapes/Other/HalfCapsule.swift b/Sources/Shapes/Other/HalfCapsule.swift index 782d3cb..00dd615 100644 --- a/Sources/Shapes/Other/HalfCapsule.swift +++ b/Sources/Shapes/Other/HalfCapsule.swift @@ -37,5 +37,6 @@ public struct HalfCapsule: View, InsettableShape { struct HalfCapsule_Previews: PreviewProvider { static var previews: some View { HalfCapsule() + .previewLayout(.fixed(width: 400, height: 300)) } } diff --git a/Sources/Shapes/Path/Path+QuadCurves.swift b/Sources/Shapes/Path/Path+QuadCurves.swift index e185cfa..9ff2242 100644 --- a/Sources/Shapes/Path/Path+QuadCurves.swift +++ b/Sources/Shapes/Path/Path+QuadCurves.swift @@ -1,6 +1,5 @@ import SwiftUI - public extension Path { mutating func addQuadCurves(_ points: [CGPoint]) { guard points.count > 0 else { return } diff --git a/Sources/Shapes/Patterns/GridPattern.swift b/Sources/Shapes/Patterns/GridPattern.swift index 9ec22b4..34a4088 100644 --- a/Sources/Shapes/Patterns/GridPattern.swift +++ b/Sources/Shapes/Patterns/GridPattern.swift @@ -52,3 +52,32 @@ public struct GridPattern: InsettableShape { self.verticalLines = verticalLines } } + +struct GridPattern_Previews: PreviewProvider { + static var previews: some View { + Group { + GridPattern(horizontalLines: 20, verticalLines: 40) + .stroke(Color.white.opacity(0.3), style: .init(lineWidth: 1, lineCap: .round)) + .frame(height: 200) + .background(Color.blue) + .padding() + + + LinearGradient(gradient: Gradient(colors: [.orange, .red, .blue, .purple]), startPoint: .topLeading, endPoint: .bottomTrailing) + .frame(height: 200) + .clipShape( + GridPattern(horizontalLines: 25, verticalLines: 25).inset(by: 1).stroke(lineWidth: 1) + ) + .padding() + + LinearGradient(gradient: Gradient(colors: [.purple, .red, .orange]), startPoint: .topLeading, endPoint: .bottomTrailing) + .frame(height: 200) + .clipShape( + GridPattern(horizontalLines: 10) + .inset(by: 2) + .stroke(style: .init(lineWidth: 4, lineCap: .round, lineJoin: .round, miterLimit: 2, dash: [10], dashPhase: 0)) + ) + .padding() + } + } +} diff --git a/Sources/Shapes/RegularPolygons/Decagon.swift b/Sources/Shapes/RegularPolygons/Decagon.swift index 664325c..8425182 100644 --- a/Sources/Shapes/RegularPolygons/Decagon.swift +++ b/Sources/Shapes/RegularPolygons/Decagon.swift @@ -21,3 +21,9 @@ extension Decagon { self.inset = inset } } + +struct Decagon_Previews: PreviewProvider { + static var previews: some View { + Decagon() + } +} diff --git a/Sources/Shapes/RegularPolygons/Heptagon.swift b/Sources/Shapes/RegularPolygons/Heptagon.swift index b5c7007..5f0a4bf 100644 --- a/Sources/Shapes/RegularPolygons/Heptagon.swift +++ b/Sources/Shapes/RegularPolygons/Heptagon.swift @@ -21,3 +21,9 @@ extension Heptagon { self.inset = inset } } + +struct Heptagon_Previews: PreviewProvider { + static var previews: some View { + Heptagon() + } +} diff --git a/Sources/Shapes/RegularPolygons/Hexagon.swift b/Sources/Shapes/RegularPolygons/Hexagon.swift index f01024d..f1aedde 100644 --- a/Sources/Shapes/RegularPolygons/Hexagon.swift +++ b/Sources/Shapes/RegularPolygons/Hexagon.swift @@ -21,3 +21,9 @@ extension Hexagon { self.inset = inset } } + +struct Hexagon_Previews: PreviewProvider { + static var previews: some View { + Hexagon() + } +} diff --git a/Sources/Shapes/RegularPolygons/Nonagon.swift b/Sources/Shapes/RegularPolygons/Nonagon.swift index e37abd9..5eb4bb1 100644 --- a/Sources/Shapes/RegularPolygons/Nonagon.swift +++ b/Sources/Shapes/RegularPolygons/Nonagon.swift @@ -21,3 +21,9 @@ extension Nonagon { self.inset = inset } } + +struct Nonagon_Previews: PreviewProvider { + static var previews: some View { + Nonagon() + } +} diff --git a/Sources/Shapes/RegularPolygons/Octagon.swift b/Sources/Shapes/RegularPolygons/Octagon.swift index 321eaf9..0372051 100644 --- a/Sources/Shapes/RegularPolygons/Octagon.swift +++ b/Sources/Shapes/RegularPolygons/Octagon.swift @@ -21,3 +21,9 @@ extension Octagon { self.inset = inset } } + +struct Octagon_Previews: PreviewProvider { + static var previews: some View { + Octagon() + } +} diff --git a/Sources/Shapes/RegularPolygons/Pentagon.swift b/Sources/Shapes/RegularPolygons/Pentagon.swift index 40374de..70de9ec 100644 --- a/Sources/Shapes/RegularPolygons/Pentagon.swift +++ b/Sources/Shapes/RegularPolygons/Pentagon.swift @@ -21,3 +21,9 @@ extension Pentagon { self.inset = inset } } + +struct Pentagon_Previews: PreviewProvider { + static var previews: some View { + Pentagon() + } +} diff --git a/Sources/Shapes/RegularPolygons/RegularPolygon.swift b/Sources/Shapes/RegularPolygons/RegularPolygon.swift index c48e1e1..fc3fe0c 100644 --- a/Sources/Shapes/RegularPolygons/RegularPolygon.swift +++ b/Sources/Shapes/RegularPolygons/RegularPolygon.swift @@ -29,3 +29,32 @@ extension RegularPolygon { self.inset = inset } } + +struct RegularPolygon_Previews: PreviewProvider { + static var previews: some View { + Group { + RegularPolygon(sides: 4) + .strokeBorder(lineWidth: 20) + .foregroundColor(.blue) + + Pentagon() + .strokeBorder(lineWidth: 20) + .foregroundColor(.yellow) + + Hexagon() + .foregroundColor(.orange) + + Heptagon() + .foregroundColor(.blue) + + Octagon() + .foregroundColor(.pink) + + Nonagon() + .foregroundColor(.red) + + Decagon() + .foregroundColor(.green) + } + } +} diff --git a/Tests/LinuxMain.swift b/Tests/LinuxMain.swift deleted file mode 100644 index b684409..0000000 --- a/Tests/LinuxMain.swift +++ /dev/null @@ -1,7 +0,0 @@ -import XCTest - -import ShapesTests - -var tests = [XCTestCaseEntry]() -tests += ShapesTests.allTests() -XCTMain(tests) diff --git a/Tests/ShapesTests/ShapesTests.swift b/Tests/ShapesTests/ShapesTests.swift deleted file mode 100644 index acf6ddd..0000000 --- a/Tests/ShapesTests/ShapesTests.swift +++ /dev/null @@ -1,11 +0,0 @@ -import XCTest -@testable import Shapes - -final class ShapesTests: XCTestCase { - func testExample() { - } - - static var allTests = [ - ("testExample", testExample), - ] -} diff --git a/Tests/ShapesTests/XCTestManifests.swift b/Tests/ShapesTests/XCTestManifests.swift deleted file mode 100644 index da75088..0000000 --- a/Tests/ShapesTests/XCTestManifests.swift +++ /dev/null @@ -1,9 +0,0 @@ -import XCTest - -#if !canImport(ObjectiveC) -public func allTests() -> [XCTestCaseEntry] { - return [ - testCase(ShapesTests.allTests), - ] -} -#endif From 003802380de45216ad844f75d970612d6bd757bd Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 9 Oct 2020 21:51:08 -0700 Subject: [PATCH 2/2] Update README.md --- README.md | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/README.md b/README.md index 6babb2c..2d54b85 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ ## SwiftUI Shapes -Collection of custom shapes for iOS and macOS +Collection of custom shapes ## Regular Polygons
@@ -44,22 +44,16 @@ GridPattern(horizontalLines: 20, verticalLines: 40) Add this swift package to your project ``` -git@github.com:SwiftUIExtensions/Shapes.git +git@github.com:swift-extensions/swiftui-shapes.git ``` For more examples open `/Examples/ShapesExamples.xcodeproj` -## SDKs -- iOS 13+ -- Mac Catalyst 13.0+ -- macOS 10.15+ -- Xcode 11.0+ - ## Roadmap - Rounded regular polygons -## Code Contibutions +## Code Contributions Feel free to contribute via fork/pull request to master branch. If you want to request a feature or report a bug please start a new issue. -## Coffee Contibutions +## Coffee Contributions If you find this project useful please consider becoming my GitHub sponsor.