Ivan Valkou 5 лет назад
Родитель
Сommit
59a9c2bd23
100 измененных файлов с 0 добавлено и 6160 удалено
  1. 0 33
      Dependecies/MKRingProgressView/.gitignore
  2. 0 45
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/AppDelegate.swift
  3. 0 116
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Contents.json
  4. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-1024.png
  5. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-20.png
  6. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png
  7. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png
  8. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-29.png
  9. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png
  10. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png
  11. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-40.png
  12. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png
  13. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png
  14. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png
  15. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png
  16. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-76.png
  17. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png
  18. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png
  19. 0 6
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/Contents.json
  20. 0 22
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon1.imageset/Contents.json
  21. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon1.imageset/icon1@2x.png
  22. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon1.imageset/icon1@3x.png
  23. 0 22
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon2.imageset/Contents.json
  24. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon2.imageset/icon2@2x.png
  25. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon2.imageset/icon2@3x.png
  26. 0 22
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon3.imageset/Contents.json
  27. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon3.imageset/icon3@2x.png
  28. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon3.imageset/icon3@3x.png
  29. 0 22
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/tab.imageset/Contents.json
  30. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/tab.imageset/tab@2x.png
  31. BIN
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/tab.imageset/tab@3x.png
  32. 0 54
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Base.lproj/LaunchScreen.storyboard
  33. 0 168
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Base.lproj/Main.storyboard
  34. 0 38
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Icon.swift
  35. 0 49
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/Info.plist
  36. 0 83
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/MKRingProgressGroupButton.swift
  37. 0 108
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/MKRingProgressGroupView.swift
  38. 0 117
      Dependecies/MKRingProgressView/Example/ActivityRingsExample/ViewController.swift
  39. 0 587
      Dependecies/MKRingProgressView/Example/MKRingProgressViewExample.xcodeproj/project.pbxproj
  40. 0 7
      Dependecies/MKRingProgressView/Example/MKRingProgressViewExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  41. 0 8
      Dependecies/MKRingProgressView/Example/MKRingProgressViewExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  42. 0 46
      Dependecies/MKRingProgressView/Example/ProgressRingExample/AppDelegate.swift
  43. 0 116
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Contents.json
  44. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-1024.png
  45. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-20.png
  46. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png
  47. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png
  48. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-29.png
  49. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png
  50. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png
  51. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-40.png
  52. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png
  53. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png
  54. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png
  55. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png
  56. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-76.png
  57. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png
  58. BIN
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png
  59. 0 6
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/Contents.json
  60. 0 50
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Base.lproj/LaunchScreen.storyboard
  61. 0 257
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Base.lproj/Main.storyboard
  62. 0 32
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Icon.swift
  63. 0 45
      Dependecies/MKRingProgressView/Example/ProgressRingExample/Info.plist
  64. 0 48
      Dependecies/MKRingProgressView/Example/ProgressRingExample/ParametersViewController.swift
  65. 0 45
      Dependecies/MKRingProgressView/Example/ProgressRingExample/ViewController.swift
  66. 0 22
      Dependecies/MKRingProgressView/LICENSE
  67. BIN
      Dependecies/MKRingProgressView/MKRingProgressView.png
  68. 0 19
      Dependecies/MKRingProgressView/MKRingProgressView.podspec
  69. 0 342
      Dependecies/MKRingProgressView/MKRingProgressView.xcodeproj/project.pbxproj
  70. 0 7
      Dependecies/MKRingProgressView/MKRingProgressView.xcodeproj/project.xcworkspace/contents.xcworkspacedata
  71. 0 8
      Dependecies/MKRingProgressView/MKRingProgressView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist
  72. 0 76
      Dependecies/MKRingProgressView/MKRingProgressView.xcodeproj/xcshareddata/xcschemes/MKRingProgressView.xcscheme
  73. 0 24
      Dependecies/MKRingProgressView/MKRingProgressView/Info.plist
  74. 0 223
      Dependecies/MKRingProgressView/MKRingProgressView/MKGradientGenerator.swift
  75. 0 327
      Dependecies/MKRingProgressView/MKRingProgressView/MKRingProgressLayer.swift
  76. 0 19
      Dependecies/MKRingProgressView/MKRingProgressView/MKRingProgressView.h
  77. 0 197
      Dependecies/MKRingProgressView/MKRingProgressView/MKRingProgressView.swift
  78. 0 87
      Dependecies/MKRingProgressView/README.md
  79. 0 34
      Dependecies/SwiftCharts/.gitignore
  80. 0 145
      Dependecies/SwiftCharts/CHANGELOG.md
  81. 0 96
      Dependecies/SwiftCharts/Examples/AppDelegate.swift
  82. 0 132
      Dependecies/SwiftCharts/Examples/DetailViewController.swift
  83. 0 172
      Dependecies/SwiftCharts/Examples/Examples/AreasExample.swift
  84. 0 172
      Dependecies/SwiftCharts/Examples/Examples/BarsExample.swift
  85. 0 150
      Dependecies/SwiftCharts/Examples/Examples/BarsPlusMinusAndLinesExample.swift
  86. 0 198
      Dependecies/SwiftCharts/Examples/Examples/BarsPlusMinusWithGradientExample.swift
  87. 0 232
      Dependecies/SwiftCharts/Examples/Examples/BubbleExample.swift
  88. 0 132
      Dependecies/SwiftCharts/Examples/Examples/CandleStickExample.swift
  89. 0 322
      Dependecies/SwiftCharts/Examples/Examples/CandleStickInteractiveExample.swift
  90. 0 46
      Dependecies/SwiftCharts/Examples/Examples/Convenience/ConvenienceBarsExample.swift
  91. 0 41
      Dependecies/SwiftCharts/Examples/Examples/Convenience/ConvenienceLinesExample.swift
  92. 0 127
      Dependecies/SwiftCharts/Examples/Examples/CoordsExample.swift
  93. 0 56
      Dependecies/SwiftCharts/Examples/Examples/CubicLinesExample.swift
  94. 0 56
      Dependecies/SwiftCharts/Examples/Examples/CubicLinesWithGradientExample.swift
  95. 0 140
      Dependecies/SwiftCharts/Examples/Examples/CustomUnitsExample.swift
  96. 0 16
      Dependecies/SwiftCharts/Examples/Examples/Env.swift
  97. 0 60
      Dependecies/SwiftCharts/Examples/Examples/EqualSpacingExample.swift
  98. 0 103
      Dependecies/SwiftCharts/Examples/Examples/ExamplesDefaults.swift
  99. 0 227
      Dependecies/SwiftCharts/Examples/Examples/GroupedAndStackedBarsExample.swift
  100. 0 0
      Dependecies/SwiftCharts/Examples/Examples/GroupedBarsExample.swift

+ 0 - 33
Dependecies/MKRingProgressView/.gitignore

@@ -1,33 +0,0 @@
-# Xcode
-#
-build/
-*.pbxuser
-!default.pbxuser
-*.mode1v3
-!default.mode1v3
-*.mode2v3
-!default.mode2v3
-*.perspectivev3
-!default.perspectivev3
-xcuserdata
-*.xccheckout
-*.moved-aside
-DerivedData
-*.hmap
-*.ipa
-*.xcuserstate
-
-# CocoaPods
-#
-# We recommend against adding the Pods directory to your .gitignore. However
-# you should judge for yourself, the pros and cons are mentioned at:
-# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
-#
-# Pods/
-
-# Carthage
-#
-# Add this line if you want to avoid checking in source code from Carthage dependencies.
-# Carthage/Checkouts
-
-Carthage/Build

+ 0 - 45
Dependecies/MKRingProgressView/Example/ActivityRingsExample/AppDelegate.swift

@@ -1,45 +0,0 @@
-//
-//  AppDelegate.swift
-//  MKRingProgressViewExample
-//
-//  Created by Max Konovalov on 20/10/15.
-//  Copyright © 2015 Max Konovalov. All rights reserved.
-//
-
-import UIKit
-
-@UIApplicationMain
-class AppDelegate: UIResponder, UIApplicationDelegate {
-
-    var window: UIWindow?
-
-    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey : Any]? = nil) -> Bool {
-        //let icon = generateAppIcon(scale: 2)
-        return true
-    }
-
-    func applicationWillResignActive(_ application: UIApplication) {
-        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
-        // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
-    }
-
-    func applicationDidEnterBackground(_ application: UIApplication) {
-        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
-        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
-    }
-
-    func applicationWillEnterForeground(_ application: UIApplication) {
-        // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
-    }
-
-    func applicationDidBecomeActive(_ application: UIApplication) {
-        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
-    }
-
-    func applicationWillTerminate(_ application: UIApplication) {
-        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
-    }
-
-
-}
-

+ 0 - 116
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Contents.json

@@ -1,116 +0,0 @@
-{
-  "images" : [
-	{
-      "size" : "20x20",
-      "idiom": "iphone",
-	  "filename" : "Icon-20@2x.png",
-      "scale": "2x"
-    },
-	{
-      "size" : "20x20",
-      "idiom": "iphone",
-	  "filename" : "Icon-20@3x.png",
-      "scale": "3x"
-    },
-	{
-      "size" : "20x20",
-      "idiom": "ipad",
-	  "filename" : "Icon-20.png",
-      "scale": "1x"
-    },
-    {
-      "size" : "20x20",
-      "idiom": "ipad",
-	  "filename" : "Icon-20@2x.png",
-      "scale": "2x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "iphone",
-      "filename" : "Icon-29@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "iphone",
-      "filename" : "Icon-29@3x.png",
-      "scale" : "3x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "iphone",
-      "filename" : "Icon-40@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "iphone",
-      "filename" : "Icon-40@3x.png",
-      "scale" : "3x"
-    },
-    {
-      "size" : "60x60",
-      "idiom" : "iphone",
-      "filename" : "Icon-60@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "60x60",
-      "idiom" : "iphone",
-      "filename" : "Icon-60@3x.png",
-      "scale" : "3x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "ipad",
-      "filename" : "Icon-29.png",
-      "scale" : "1x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "ipad",
-      "filename" : "Icon-29@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "ipad",
-      "filename" : "Icon-40.png",
-      "scale" : "1x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "ipad",
-      "filename" : "Icon-40@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "76x76",
-      "idiom" : "ipad",
-      "filename" : "Icon-76.png",
-      "scale" : "1x"
-    },
-    {
-      "size" : "76x76",
-      "idiom" : "ipad",
-      "filename" : "Icon-76@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "83.5x83.5",
-      "idiom" : "ipad",
-      "filename" : "Icon-83.5@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "1024x1024",
-      "idiom" : "ios-marketing",
-      "filename" : "Icon-1024.png",
-      "scale" : "1x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-1024.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-20.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-29.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-40.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-76.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png


+ 0 - 6
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/Contents.json

@@ -1,6 +0,0 @@
-{
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

+ 0 - 22
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon1.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "icon1@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "icon1@3x.png",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon1.imageset/icon1@2x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon1.imageset/icon1@3x.png


+ 0 - 22
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon2.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "icon2@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "icon2@3x.png",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon2.imageset/icon2@2x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon2.imageset/icon2@3x.png


+ 0 - 22
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon3.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "icon3@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "icon3@3x.png",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon3.imageset/icon3@2x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/icon3.imageset/icon3@3x.png


+ 0 - 22
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/tab.imageset/Contents.json

@@ -1,22 +0,0 @@
-{
-  "images" : [
-    {
-      "idiom" : "universal",
-      "scale" : "1x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "tab@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "idiom" : "universal",
-      "filename" : "tab@3x.png",
-      "scale" : "3x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/tab.imageset/tab@2x.png


BIN
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Assets.xcassets/tab.imageset/tab@3x.png


+ 0 - 54
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Base.lproj/LaunchScreen.storyboard

@@ -1,54 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14109" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="W8p-26-xd6">
-    <device id="retina4_7" orientation="portrait">
-        <adaptation id="fullscreen"/>
-    </device>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <scenes>
-        <!--View Controller-->
-        <scene sceneID="EHf-IW-A2E">
-            <objects>
-                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
-                    <layoutGuides>
-                        <viewControllerLayoutGuide type="top" id="Llm-lL-Icb"/>
-                        <viewControllerLayoutGuide type="bottom" id="xb3-aO-Qok"/>
-                    </layoutGuides>
-                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
-                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                    </view>
-                    <navigationItem key="navigationItem" id="U2x-jr-jGf"/>
-                </viewController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="1804" y="374.66266866566718"/>
-        </scene>
-        <!--Navigation Controller-->
-        <scene sceneID="fTU-B0-xVc">
-            <objects>
-                <navigationController automaticallyAdjustsScrollViewInsets="NO" toolbarHidden="NO" id="W8p-26-xd6" sceneMemberID="viewController">
-                    <toolbarItems/>
-                    <navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" barStyle="black" id="WVd-ve-g2H">
-                        <rect key="frame" x="0.0" y="20" width="375" height="44"/>
-                        <autoresizingMask key="autoresizingMask"/>
-                    </navigationBar>
-                    <nil name="viewControllers"/>
-                    <toolbar key="toolbar" opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" barStyle="black" id="mpe-5D-NoF">
-                        <rect key="frame" x="0.0" y="623" width="375" height="44"/>
-                        <autoresizingMask key="autoresizingMask"/>
-                    </toolbar>
-                    <connections>
-                        <segue destination="01J-lp-oVM" kind="relationship" relationship="rootViewController" id="J12-gQ-zLm"/>
-                    </connections>
-                </navigationController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="vEG-Zr-bBA" userLabel="First Responder" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="864.79999999999995" y="374.66266866566718"/>
-        </scene>
-    </scenes>
-</document>

+ 0 - 168
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Base.lproj/Main.storyboard

@@ -1,168 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14113" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="EuA-Ne-n8G">
-    <device id="retina4_7" orientation="portrait">
-        <adaptation id="fullscreen"/>
-    </device>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14088"/>
-        <capability name="Aspect ratio constraints" minToolsVersion="5.1"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <scenes>
-        <!--View Controller-->
-        <scene sceneID="tne-QT-ifu">
-            <objects>
-                <viewController id="BYZ-38-t0r" customClass="ViewController" customModule="MKRingProgressViewExample" customModuleProvider="target" sceneMemberID="viewController">
-                    <layoutGuides>
-                        <viewControllerLayoutGuide type="top" id="y3c-jy-aDJ"/>
-                        <viewControllerLayoutGuide type="bottom" id="wfy-db-euE"/>
-                    </layoutGuides>
-                    <view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
-                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <subviews>
-                            <view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="1B7-50-OvD">
-                                <rect key="frame" x="37.5" y="183.5" width="300" height="300"/>
-                                <subviews>
-                                    <view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="DIS-Q2-jEr" customClass="RingProgressGroupView" customModule="MKRingProgressViewExample" customModuleProvider="target">
-                                        <rect key="frame" x="0.0" y="0.0" width="300" height="300"/>
-                                        <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                        <constraints>
-                                            <constraint firstAttribute="width" secondItem="DIS-Q2-jEr" secondAttribute="height" multiplier="1:1" id="QOf-IP-cAz"/>
-                                        </constraints>
-                                        <userDefinedRuntimeAttributes>
-                                            <userDefinedRuntimeAttribute type="color" keyPath="ring1StartColor">
-                                                <color key="value" red="0.88235294119999996" green="0.0" blue="0.078431372550000003" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                            </userDefinedRuntimeAttribute>
-                                            <userDefinedRuntimeAttribute type="color" keyPath="ring1EndColor">
-                                                <color key="value" red="1" green="0.1960784314" blue="0.52941176469999995" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                            </userDefinedRuntimeAttribute>
-                                            <userDefinedRuntimeAttribute type="number" keyPath="ringWidth">
-                                                <real key="value" value="30"/>
-                                            </userDefinedRuntimeAttribute>
-                                            <userDefinedRuntimeAttribute type="number" keyPath="ringSpacing">
-                                                <real key="value" value="2"/>
-                                            </userDefinedRuntimeAttribute>
-                                            <userDefinedRuntimeAttribute type="color" keyPath="ring2StartColor">
-                                                <color key="value" red="0.21568627450980393" green="0.86274509803921573" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                            </userDefinedRuntimeAttribute>
-                                            <userDefinedRuntimeAttribute type="color" keyPath="ring2EndColor">
-                                                <color key="value" red="0.71764705882352942" green="1" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                            </userDefinedRuntimeAttribute>
-                                            <userDefinedRuntimeAttribute type="color" keyPath="ring3StartColor">
-                                                <color key="value" red="0.0" green="0.72941176470588232" blue="0.88235294117647056" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                            </userDefinedRuntimeAttribute>
-                                            <userDefinedRuntimeAttribute type="color" keyPath="ring3EndColor">
-                                                <color key="value" red="0.0" green="0.98039215686274506" blue="0.81568627450980391" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                            </userDefinedRuntimeAttribute>
-                                        </userDefinedRuntimeAttributes>
-                                    </view>
-                                    <view userInteractionEnabled="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="hZS-0k-xaL" userLabel="Icons View">
-                                        <rect key="frame" x="140" y="0.0" width="20" height="94"/>
-                                        <subviews>
-                                            <imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon1" translatesAutoresizingMaskIntoConstraints="NO" id="Xmf-QL-oEC">
-                                                <rect key="frame" x="0.0" y="0.0" width="20" height="30"/>
-                                            </imageView>
-                                            <imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon2" translatesAutoresizingMaskIntoConstraints="NO" id="lrY-WR-Vnf">
-                                                <rect key="frame" x="0.0" y="32" width="20" height="30"/>
-                                            </imageView>
-                                            <imageView userInteractionEnabled="NO" contentMode="center" horizontalHuggingPriority="251" verticalHuggingPriority="251" image="icon3" translatesAutoresizingMaskIntoConstraints="NO" id="PEW-hX-uRG">
-                                                <rect key="frame" x="0.0" y="64" width="20" height="30"/>
-                                            </imageView>
-                                        </subviews>
-                                        <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="0.0" colorSpace="custom" customColorSpace="sRGB"/>
-                                        <constraints>
-                                            <constraint firstItem="lrY-WR-Vnf" firstAttribute="height" secondItem="PEW-hX-uRG" secondAttribute="height" id="5zS-Vs-M6b"/>
-                                            <constraint firstItem="lrY-WR-Vnf" firstAttribute="leading" secondItem="hZS-0k-xaL" secondAttribute="leading" id="85O-mj-Hdu"/>
-                                            <constraint firstAttribute="trailing" secondItem="lrY-WR-Vnf" secondAttribute="trailing" id="A5D-5o-sn5"/>
-                                            <constraint firstAttribute="trailing" secondItem="Xmf-QL-oEC" secondAttribute="trailing" id="BeF-z5-cUA"/>
-                                            <constraint firstItem="Xmf-QL-oEC" firstAttribute="leading" secondItem="hZS-0k-xaL" secondAttribute="leading" id="Hmw-ry-iOD"/>
-                                            <constraint firstItem="Xmf-QL-oEC" firstAttribute="top" secondItem="hZS-0k-xaL" secondAttribute="top" id="HyG-oC-0rR"/>
-                                            <constraint firstItem="PEW-hX-uRG" firstAttribute="leading" secondItem="hZS-0k-xaL" secondAttribute="leading" id="eCj-Kt-k7T"/>
-                                            <constraint firstItem="PEW-hX-uRG" firstAttribute="top" secondItem="lrY-WR-Vnf" secondAttribute="bottom" constant="2" id="kdN-0g-coC"/>
-                                            <constraint firstAttribute="height" constant="94" id="rwI-F9-JcD"/>
-                                            <constraint firstAttribute="trailing" secondItem="PEW-hX-uRG" secondAttribute="trailing" id="rz3-oM-Hku"/>
-                                            <constraint firstItem="Xmf-QL-oEC" firstAttribute="height" secondItem="lrY-WR-Vnf" secondAttribute="height" id="uBM-61-Wia"/>
-                                            <constraint firstAttribute="bottom" secondItem="PEW-hX-uRG" secondAttribute="bottom" id="vG6-YN-eOB"/>
-                                            <constraint firstItem="lrY-WR-Vnf" firstAttribute="top" secondItem="Xmf-QL-oEC" secondAttribute="bottom" constant="2" id="zvl-JI-D6Q"/>
-                                        </constraints>
-                                    </view>
-                                </subviews>
-                                <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                <constraints>
-                                    <constraint firstItem="hZS-0k-xaL" firstAttribute="centerX" secondItem="DIS-Q2-jEr" secondAttribute="centerX" id="3JZ-n2-xNe"/>
-                                    <constraint firstItem="hZS-0k-xaL" firstAttribute="top" secondItem="DIS-Q2-jEr" secondAttribute="top" id="5Yk-3E-Njf"/>
-                                    <constraint firstAttribute="trailing" secondItem="DIS-Q2-jEr" secondAttribute="trailing" id="9wN-f0-ztj"/>
-                                    <constraint firstItem="DIS-Q2-jEr" firstAttribute="top" secondItem="1B7-50-OvD" secondAttribute="top" id="KBx-zM-ONM"/>
-                                    <constraint firstItem="DIS-Q2-jEr" firstAttribute="leading" secondItem="1B7-50-OvD" secondAttribute="leading" id="nEi-kA-En1"/>
-                                    <constraint firstAttribute="width" relation="lessThanOrEqual" constant="300" id="rh0-6Z-o2x"/>
-                                    <constraint firstAttribute="bottom" secondItem="DIS-Q2-jEr" secondAttribute="bottom" id="yMg-bP-AJI"/>
-                                </constraints>
-                            </view>
-                            <toolbar opaque="NO" clearsContextBeforeDrawing="NO" contentMode="scaleToFill" barStyle="black" translatesAutoresizingMaskIntoConstraints="NO" id="fq2-ao-3yC">
-                                <rect key="frame" x="0.0" y="623" width="375" height="44"/>
-                                <items>
-                                    <barButtonItem style="plain" systemItem="flexibleSpace" id="QBh-jE-Aqm"/>
-                                    <barButtonItem image="tab" id="aO7-rP-06s">
-                                        <connections>
-                                            <action selector="randomize:" destination="BYZ-38-t0r" id="By5-po-bvc"/>
-                                        </connections>
-                                    </barButtonItem>
-                                    <barButtonItem style="plain" systemItem="flexibleSpace" id="q9t-0s-Nhu"/>
-                                </items>
-                            </toolbar>
-                        </subviews>
-                        <color key="backgroundColor" red="0.0" green="0.0" blue="0.0" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                        <constraints>
-                            <constraint firstItem="fq2-ao-3yC" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" id="0YN-5Y-gM1"/>
-                            <constraint firstItem="1B7-50-OvD" firstAttribute="centerX" secondItem="8bC-Xf-vdC" secondAttribute="centerX" id="5Ta-F1-UTR"/>
-                            <constraint firstItem="1B7-50-OvD" firstAttribute="centerY" secondItem="8bC-Xf-vdC" secondAttribute="centerY" id="AWY-j5-QML"/>
-                            <constraint firstItem="wfy-db-euE" firstAttribute="top" secondItem="fq2-ao-3yC" secondAttribute="bottom" id="CUm-oT-16R"/>
-                            <constraint firstAttribute="trailing" secondItem="1B7-50-OvD" secondAttribute="trailing" priority="750" constant="20" id="lfg-ak-BgD"/>
-                            <constraint firstItem="1B7-50-OvD" firstAttribute="leading" secondItem="8bC-Xf-vdC" secondAttribute="leading" priority="750" constant="20" id="mAo-uS-XV3"/>
-                            <constraint firstAttribute="trailing" secondItem="fq2-ao-3yC" secondAttribute="trailing" id="wb6-0K-mn9"/>
-                        </constraints>
-                    </view>
-                    <navigationItem key="navigationItem" id="0Pz-g7-5oi">
-                        <nil key="title"/>
-                    </navigationItem>
-                    <nil key="simulatedTopBarMetrics"/>
-                    <connections>
-                        <outlet property="groupContainerView" destination="1B7-50-OvD" id="x56-8B-f9v"/>
-                        <outlet property="iconsHeightConstraint" destination="rwI-F9-JcD" id="DdQ-Oc-c55"/>
-                        <outlet property="progressGroup" destination="DIS-Q2-jEr" id="dOp-K2-H6j"/>
-                    </connections>
-                </viewController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="1942" y="1058"/>
-        </scene>
-        <!--Activity-->
-        <scene sceneID="c3c-S8-bhg">
-            <objects>
-                <navigationController automaticallyAdjustsScrollViewInsets="NO" id="EuA-Ne-n8G" sceneMemberID="viewController">
-                    <tabBarItem key="tabBarItem" title="Activity" image="tab" selectedImage="tab" id="JPF-b6-vXp"/>
-                    <toolbarItems/>
-                    <navigationBar key="navigationBar" contentMode="scaleToFill" barStyle="black" id="7lh-1C-3Cz">
-                        <rect key="frame" x="0.0" y="20" width="375" height="44"/>
-                        <autoresizingMask key="autoresizingMask"/>
-                    </navigationBar>
-                    <nil name="viewControllers"/>
-                    <connections>
-                        <segue destination="BYZ-38-t0r" kind="relationship" relationship="rootViewController" id="RmD-fD-wn3"/>
-                    </connections>
-                </navigationController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="B13-UN-OSU" userLabel="First Responder" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="1148" y="1057"/>
-        </scene>
-    </scenes>
-    <resources>
-        <image name="icon1" width="20" height="20"/>
-        <image name="icon2" width="20" height="20"/>
-        <image name="icon3" width="20" height="20"/>
-        <image name="tab" width="30" height="30"/>
-    </resources>
-    <color key="tintColor" red="1" green="0.074509803921568626" blue="0.32549019607843138" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-</document>

+ 0 - 38
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Icon.swift

@@ -1,38 +0,0 @@
-//
-//  Icon.swift
-//  MKRingProgressViewExample
-//
-//  Created by Max Konovalov on 25/05/2018.
-//  Copyright © 2018 Max Konovalov. All rights reserved.
-//
-
-import UIKit
-
-func generateAppIcon(scale: CGFloat = 1.0) -> UIImage {
-    let size = CGSize(width: 512, height: 512)
-    let rect = CGRect(origin: .zero, size: size)
-
-    let icon = UIView(frame: rect)
-    icon.backgroundColor = #colorLiteral(red: 0.1176470588, green: 0.1176470588, blue: 0.1254901961, alpha: 1)
-
-    let group = RingProgressGroupView(frame: icon.bounds.insetBy(dx: 33, dy: 33))
-    group.ringWidth = 50
-    group.ringSpacing = 10
-    group.ring1StartColor = #colorLiteral(red: 0.8823529412, green: 0, blue: 0.07843137255, alpha: 1)
-    group.ring1EndColor = #colorLiteral(red: 1, green: 0.1960784314, blue: 0.5294117647, alpha: 1)
-    group.ring2StartColor = #colorLiteral(red: 0.2156862745, green: 0.862745098, blue: 0, alpha: 1)
-    group.ring2EndColor = #colorLiteral(red: 0.7176470588, green: 1, blue: 0, alpha: 1)
-    group.ring3StartColor = #colorLiteral(red: 0, green: 0.7294117647, blue: 0.8823529412, alpha: 1)
-    group.ring3EndColor = #colorLiteral(red: 0, green: 0.9803921569, blue: 0.8156862745, alpha: 1)
-    group.ring1.progress = 1.0
-    group.ring2.progress = 1.0
-    group.ring3.progress = 1.0
-    icon.addSubview(group)
-
-    UIGraphicsBeginImageContextWithOptions(size, true, scale)
-    icon.drawHierarchy(in: rect, afterScreenUpdates: true)
-    let image = UIGraphicsGetImageFromCurrentImageContext()!
-    UIGraphicsEndImageContext()
-
-    return image
-}

+ 0 - 49
Dependecies/MKRingProgressView/Example/ActivityRingsExample/Info.plist

@@ -1,49 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>CFBundleDevelopmentRegion</key>
-	<string>en</string>
-	<key>CFBundleDisplayName</key>
-	<string>Rings</string>
-	<key>CFBundleExecutable</key>
-	<string>$(EXECUTABLE_NAME)</string>
-	<key>CFBundleIdentifier</key>
-	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundleName</key>
-	<string>$(PRODUCT_NAME)</string>
-	<key>CFBundlePackageType</key>
-	<string>APPL</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
-	<key>CFBundleSignature</key>
-	<string>????</string>
-	<key>CFBundleVersion</key>
-	<string>1</string>
-	<key>LSRequiresIPhoneOS</key>
-	<true/>
-	<key>UILaunchStoryboardName</key>
-	<string>LaunchScreen</string>
-	<key>UIMainStoryboardFile</key>
-	<string>Main</string>
-	<key>UIRequiredDeviceCapabilities</key>
-	<array>
-		<string>armv7</string>
-	</array>
-	<key>UIStatusBarStyle</key>
-	<string>UIStatusBarStyleLightContent</string>
-	<key>UISupportedInterfaceOrientations</key>
-	<array>
-		<string>UIInterfaceOrientationPortrait</string>
-	</array>
-	<key>UISupportedInterfaceOrientations~ipad</key>
-	<array>
-		<string>UIInterfaceOrientationPortrait</string>
-		<string>UIInterfaceOrientationPortraitUpsideDown</string>
-		<string>UIInterfaceOrientationLandscapeLeft</string>
-		<string>UIInterfaceOrientationLandscapeRight</string>
-	</array>
-</dict>
-</plist>

+ 0 - 83
Dependecies/MKRingProgressView/Example/ActivityRingsExample/MKRingProgressGroupButton.swift

@@ -1,83 +0,0 @@
-/*
-The MIT License (MIT)
-
-Copyright (c) 2015 Max Konovalov
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-
-import UIKit
-
-class RingProgressGroupButton: UIButton {
-    
-    let contentView = RingProgressGroupView()
-    
-    let selectionIndicatorView = UIView(frame: CGRect(x: 0, y: 0, width: 20, height: 20))
-    
-    var contentMargin: CGFloat = 2 {
-        didSet {
-            setNeedsLayout()
-        }
-    }
-    
-    override init(frame: CGRect) {
-        super.init(frame: frame)
-        setup()
-    }
-    
-    required init?(coder aDecoder: NSCoder) {
-        super.init(coder: aDecoder)
-        setup()
-    }
-    
-    private func setup() {
-        selectionIndicatorView.isUserInteractionEnabled = false
-        selectionIndicatorView.backgroundColor = .clear
-        selectionIndicatorView.layer.masksToBounds = false
-        selectionIndicatorView.layer.shadowColor = UIColor.white.cgColor
-        selectionIndicatorView.layer.shadowOpacity = 1.0
-        selectionIndicatorView.layer.shadowRadius = 1.0
-        selectionIndicatorView.layer.shadowOffset = CGSize(width: 0, height: 0)
-        addSubview(selectionIndicatorView)
-        selectionIndicatorView.isHidden = true
-        
-        contentView.isUserInteractionEnabled = false
-        addSubview(contentView)
-    }
-
-    override func layoutSubviews() {
-        super.layoutSubviews()
-        let size = min(bounds.width, bounds.height) - contentMargin * 2
-        contentView.frame = CGRect(x: (bounds.width - size)/2, y: (bounds.height - size)/2, width: size, height: size)
-        selectionIndicatorView.frame = contentView.frame
-        selectionIndicatorView.layer.shadowPath = CGPath(__byStroking: UIBezierPath(ovalIn: selectionIndicatorView.bounds.insetBy(dx: -1, dy: -1)).cgPath, transform: nil, lineWidth: 1.0, lineCap: .round, lineJoin: .round, miterLimit: 0)
-    }
-
-    override var isHighlighted: Bool {
-        didSet {
-            contentView.alpha = isHighlighted ? 0.3 : 1.0
-        }
-    }
-    
-    override var isSelected: Bool {
-        didSet {
-            selectionIndicatorView.isHidden = !isSelected
-        }
-    }
-}

+ 0 - 108
Dependecies/MKRingProgressView/Example/ActivityRingsExample/MKRingProgressGroupView.swift

@@ -1,108 +0,0 @@
-/*
-The MIT License (MIT)
-
-Copyright (c) 2015 Max Konovalov
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in
-all copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
-THE SOFTWARE.
-*/
-
-import UIKit
-import MKRingProgressView
-
-@IBDesignable
-class RingProgressGroupView: UIView {
-
-    let ring1 = RingProgressView()
-    let ring2 = RingProgressView()
-    let ring3 = RingProgressView()
-    
-    @IBInspectable var ring1StartColor: UIColor = .red {
-        didSet {
-            ring1.startColor = ring1StartColor
-        }
-    }
-    
-    @IBInspectable var ring1EndColor: UIColor = .blue {
-        didSet {
-            ring1.endColor = ring1EndColor
-        }
-    }
-    
-    @IBInspectable var ring2StartColor: UIColor = .red {
-        didSet {
-            ring2.startColor = ring2StartColor
-        }
-    }
-    
-    @IBInspectable var ring2EndColor: UIColor = .blue {
-        didSet {
-            ring2.endColor = ring2EndColor
-        }
-    }
-    
-    @IBInspectable var ring3StartColor: UIColor = .red {
-        didSet {
-            ring3.startColor = ring3StartColor
-        }
-    }
-    
-    @IBInspectable var ring3EndColor: UIColor = .blue {
-        didSet {
-            ring3.endColor = ring3EndColor
-        }
-    }
-    
-    @IBInspectable var ringWidth: CGFloat = 20 {
-        didSet {
-            ring1.ringWidth = ringWidth
-            ring2.ringWidth = ringWidth
-            ring3.ringWidth = ringWidth
-            setNeedsLayout()
-        }
-    }
-    
-    @IBInspectable var ringSpacing: CGFloat = 2 {
-        didSet {
-            setNeedsLayout()
-        }
-    }
-    
-    override init(frame: CGRect) {
-        super.init(frame: frame)
-        setup()
-    }
-    
-    required init?(coder aDecoder: NSCoder) {
-        super.init(coder: aDecoder)
-        setup()
-    }
-    
-    private func setup() {
-        addSubview(ring1)
-        addSubview(ring2)
-        addSubview(ring3)
-    }
-    
-    override func layoutSubviews() {
-        super.layoutSubviews()
-        ring1.frame = bounds
-        ring2.frame = bounds.insetBy(dx: ringWidth + ringSpacing, dy: ringWidth + ringSpacing)
-        ring3.frame = bounds.insetBy(dx: 2 * ringWidth + 2 * ringSpacing, dy: 2 * ringWidth + 2 * ringSpacing)
-    }
-}

+ 0 - 117
Dependecies/MKRingProgressView/Example/ActivityRingsExample/ViewController.swift

@@ -1,117 +0,0 @@
-//
-//  ViewController.swift
-//  MKRingProgressViewExample
-//
-//  Created by Max Konovalov on 20/10/15.
-//  Copyright © 2015 Max Konovalov. All rights reserved.
-//
-
-import UIKit
-
-class ViewController: UIViewController {
-
-    @IBOutlet weak var groupContainerView: UIView!
-    @IBOutlet weak var progressGroup: RingProgressGroupView!
-    
-    @IBOutlet weak var iconsHeightConstraint: NSLayoutConstraint!
-    
-    var buttons = [RingProgressGroupButton]()
-    var selectedIndex = 0
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let containerView = UIView(frame: navigationController!.navigationBar.bounds)
-        navigationController!.navigationBar.addSubview(containerView)
-
-        // These are optional and only serve to improve accessibility
-        progressGroup.ring1.accessibilityLabel = NSLocalizedString("Move", comment: "")
-        progressGroup.ring2.accessibilityLabel = NSLocalizedString("Exercise", comment: "")
-        progressGroup.ring3.accessibilityLabel = NSLocalizedString("Stand", comment: "")
-
-        let n = 7
-        for i in 0..<n {
-            let w = (containerView.bounds.width - 16) / CGFloat(n)
-            let h = containerView.bounds.height
-            let button = RingProgressGroupButton(frame: CGRect(x: 8 + CGFloat(i) * w, y: 0, width: w, height: h))
-            button.contentView.ringWidth = 4.5
-            button.contentView.ringSpacing = 1
-            button.contentView.ring1StartColor = progressGroup.ring1StartColor
-            button.contentView.ring1EndColor = progressGroup.ring1EndColor
-            button.contentView.ring2StartColor = progressGroup.ring2StartColor
-            button.contentView.ring2EndColor = progressGroup.ring2EndColor
-            button.contentView.ring3StartColor = progressGroup.ring3StartColor
-            button.contentView.ring3EndColor = progressGroup.ring3EndColor
-            containerView.addSubview(button)
-            buttons.append(button)
-            button.addTarget(self, action: #selector(ViewController.buttonTapped(_:)), for: .touchUpInside)
-        }
-
-        buttons[0].isSelected = true
-
-        updateButtonsProgress()
-    }
-
-
-    override func viewDidAppear(_ animated: Bool) {
-        super.viewDidAppear(animated)
-        updateMainGroupProgress(delay: 0.5)
-    }
-
-    override func viewDidLayoutSubviews() {
-        super.viewDidLayoutSubviews()
-        iconsHeightConstraint.constant = progressGroup.ringWidth * 3 + progressGroup.ringSpacing * 2
-    }
-    
-    @objc func buttonTapped(_ sender: RingProgressGroupButton) {
-		let newIndex = buttons.firstIndex(of: sender) ?? 0
-        if newIndex == selectedIndex {
-            return
-        }
-        
-        let dx = (newIndex > selectedIndex) ? -self.view.frame.width : self.view.frame.width
-        
-        buttons[selectedIndex].isSelected = false
-        sender.isSelected = true
-        selectedIndex = newIndex
-        
-        UIView.animate(withDuration: 0.2, delay: 0.0, usingSpringWithDamping: 0.9, initialSpringVelocity: 0.0, options: [], animations: { () -> Void in
-            self.groupContainerView.transform = CGAffineTransform(translationX: dx, y: 0)
-        }) { (_) -> Void in
-            self.groupContainerView.transform = CGAffineTransform(translationX: -dx, y: 0)
-            self.progressGroup.ring1.progress = 0.0
-            self.progressGroup.ring2.progress = 0.0
-            self.progressGroup.ring3.progress = 0.0
-            UIView.animate(withDuration: 0.3, delay: 0.0, usingSpringWithDamping: 0.9, initialSpringVelocity: 0.0, options: [], animations: { () -> Void in
-                self.groupContainerView.transform = CGAffineTransform.identity
-            }, completion: { (_) -> Void in
-                self.updateMainGroupProgress()
-            })
-        }
-    }
-
-    private func updateButtonsProgress() {
-        UIView.animate(withDuration: 0.5) {
-            for button in self.buttons {
-                button.contentView.ring1.progress = Double(arc4random() % 200) / 100.0
-                button.contentView.ring2.progress = Double(arc4random() % 200) / 100.0
-                button.contentView.ring3.progress = Double(arc4random() % 200) / 100.0
-            }
-        }
-    }
-
-    private func updateMainGroupProgress(delay: TimeInterval = 0.0) {
-        let selectedGroup = buttons[selectedIndex]
-        UIView.animate(withDuration: 1.0, delay: delay, usingSpringWithDamping: 1.0, initialSpringVelocity: 0.0, options: [], animations: {
-            self.progressGroup.ring1.progress = selectedGroup.contentView.ring1.progress
-            self.progressGroup.ring2.progress = selectedGroup.contentView.ring2.progress
-            self.progressGroup.ring3.progress = selectedGroup.contentView.ring3.progress
-        }, completion: nil)
-    }
-    
-    @IBAction func randomize(_ sender: AnyObject? = nil) {
-        updateButtonsProgress()
-        updateMainGroupProgress()
-    }
-
-}

+ 0 - 587
Dependecies/MKRingProgressView/Example/MKRingProgressViewExample.xcodeproj/project.pbxproj

@@ -1,587 +0,0 @@
-// !$*UTF8*$!
-{
-	archiveVersion = 1;
-	classes = {
-	};
-	objectVersion = 46;
-	objects = {
-
-/* Begin PBXBuildFile section */
-		5022C19720B803AB0068B650 /* Icon.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5022C19620B803AB0068B650 /* Icon.swift */; };
-		50246419217CCA2B00454379 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 50246418217CCA2B00454379 /* AppDelegate.swift */; };
-		5024641B217CCA2B00454379 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5024641A217CCA2B00454379 /* ViewController.swift */; };
-		5024641E217CCA2B00454379 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 5024641C217CCA2B00454379 /* Main.storyboard */; };
-		50246420217CCA2B00454379 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 5024641F217CCA2B00454379 /* Assets.xcassets */; };
-		50246423217CCA2B00454379 /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 50246421217CCA2B00454379 /* LaunchScreen.storyboard */; };
-		50246428217CCB1000454379 /* MKRingProgressView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5025B8911E52FF5D0018FA7D /* MKRingProgressView.framework */; };
-		50246429217CCB1000454379 /* MKRingProgressView.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5025B8911E52FF5D0018FA7D /* MKRingProgressView.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
-		5025B8921E52FF6F0018FA7D /* MKRingProgressView.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = 5025B8911E52FF5D0018FA7D /* MKRingProgressView.framework */; };
-		5025B8941E52FFC90018FA7D /* MKRingProgressView.framework in Embed Frameworks */ = {isa = PBXBuildFile; fileRef = 5025B8911E52FF5D0018FA7D /* MKRingProgressView.framework */; settings = {ATTRIBUTES = (CodeSignOnCopy, RemoveHeadersOnCopy, ); }; };
-		507AB38C217E231800D87320 /* ParametersViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507AB38B217E231800D87320 /* ParametersViewController.swift */; };
-		507AB38F217E2A2600D87320 /* Icon.swift in Sources */ = {isa = PBXBuildFile; fileRef = 507AB38E217E2A2600D87320 /* Icon.swift */; };
-		508CBF7B1BD6C2C7008A3B4E /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508CBF7A1BD6C2C7008A3B4E /* AppDelegate.swift */; };
-		508CBF7D1BD6C2C7008A3B4E /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508CBF7C1BD6C2C7008A3B4E /* ViewController.swift */; };
-		508CBF801BD6C2C7008A3B4E /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 508CBF7E1BD6C2C7008A3B4E /* Main.storyboard */; };
-		508CBF821BD6C2C7008A3B4E /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 508CBF811BD6C2C7008A3B4E /* Assets.xcassets */; };
-		508CBF851BD6C2C7008A3B4E /* LaunchScreen.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 508CBF831BD6C2C7008A3B4E /* LaunchScreen.storyboard */; };
-		508CBF921BD6CA0C008A3B4E /* MKRingProgressGroupView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508CBF911BD6CA0C008A3B4E /* MKRingProgressGroupView.swift */; };
-		508CBF951BD6DBC2008A3B4E /* MKRingProgressGroupButton.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508CBF941BD6DBC2008A3B4E /* MKRingProgressGroupButton.swift */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXContainerItemProxy section */
-		5025B8901E52FF5D0018FA7D /* PBXContainerItemProxy */ = {
-			isa = PBXContainerItemProxy;
-			containerPortal = 5025B88C1E52FF5D0018FA7D /* MKRingProgressView.xcodeproj */;
-			proxyType = 2;
-			remoteGlobalIDString = 5085266E1E52FDC000D611F4;
-			remoteInfo = MKRingProgressView;
-		};
-/* End PBXContainerItemProxy section */
-
-/* Begin PBXCopyFilesBuildPhase section */
-		5024642C217CCB1000454379 /* Embed Frameworks */ = {
-			isa = PBXCopyFilesBuildPhase;
-			buildActionMask = 2147483647;
-			dstPath = "";
-			dstSubfolderSpec = 10;
-			files = (
-				50246429217CCB1000454379 /* MKRingProgressView.framework in Embed Frameworks */,
-			);
-			name = "Embed Frameworks";
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-		5025B8971E52FFC90018FA7D /* Embed Frameworks */ = {
-			isa = PBXCopyFilesBuildPhase;
-			buildActionMask = 2147483647;
-			dstPath = "";
-			dstSubfolderSpec = 10;
-			files = (
-				5025B8941E52FFC90018FA7D /* MKRingProgressView.framework in Embed Frameworks */,
-			);
-			name = "Embed Frameworks";
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXCopyFilesBuildPhase section */
-
-/* Begin PBXFileReference section */
-		5022C19620B803AB0068B650 /* Icon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Icon.swift; sourceTree = "<group>"; };
-		50246416217CCA2A00454379 /* ProgressRingExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ProgressRingExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
-		50246418217CCA2B00454379 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
-		5024641A217CCA2B00454379 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
-		5024641D217CCA2B00454379 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
-		5024641F217CCA2B00454379 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
-		50246422217CCA2B00454379 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
-		50246424217CCA2B00454379 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-		5025B88C1E52FF5D0018FA7D /* MKRingProgressView.xcodeproj */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.pb-project"; name = MKRingProgressView.xcodeproj; path = ../MKRingProgressView.xcodeproj; sourceTree = "<group>"; };
-		507AB38B217E231800D87320 /* ParametersViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ParametersViewController.swift; sourceTree = "<group>"; };
-		507AB38E217E2A2600D87320 /* Icon.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Icon.swift; sourceTree = "<group>"; };
-		508CBF771BD6C2C7008A3B4E /* ActivityRingsExample.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = ActivityRingsExample.app; sourceTree = BUILT_PRODUCTS_DIR; };
-		508CBF7A1BD6C2C7008A3B4E /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
-		508CBF7C1BD6C2C7008A3B4E /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
-		508CBF7F1BD6C2C7008A3B4E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
-		508CBF811BD6C2C7008A3B4E /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
-		508CBF841BD6C2C7008A3B4E /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/LaunchScreen.storyboard; sourceTree = "<group>"; };
-		508CBF861BD6C2C7008A3B4E /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-		508CBF911BD6CA0C008A3B4E /* MKRingProgressGroupView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MKRingProgressGroupView.swift; sourceTree = "<group>"; };
-		508CBF941BD6DBC2008A3B4E /* MKRingProgressGroupButton.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MKRingProgressGroupButton.swift; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
-		50246413217CCA2A00454379 /* Frameworks */ = {
-			isa = PBXFrameworksBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				50246428217CCB1000454379 /* MKRingProgressView.framework in Frameworks */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-		508CBF741BD6C2C7008A3B4E /* Frameworks */ = {
-			isa = PBXFrameworksBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				5025B8921E52FF6F0018FA7D /* MKRingProgressView.framework in Frameworks */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
-		50246417217CCA2B00454379 /* ProgressRingExample */ = {
-			isa = PBXGroup;
-			children = (
-				50246418217CCA2B00454379 /* AppDelegate.swift */,
-				507AB38E217E2A2600D87320 /* Icon.swift */,
-				5024641A217CCA2B00454379 /* ViewController.swift */,
-				507AB38B217E231800D87320 /* ParametersViewController.swift */,
-				5024641C217CCA2B00454379 /* Main.storyboard */,
-				50246421217CCA2B00454379 /* LaunchScreen.storyboard */,
-				5024641F217CCA2B00454379 /* Assets.xcassets */,
-				50246424217CCA2B00454379 /* Info.plist */,
-			);
-			path = ProgressRingExample;
-			sourceTree = "<group>";
-		};
-		5025B88D1E52FF5D0018FA7D /* Products */ = {
-			isa = PBXGroup;
-			children = (
-				5025B8911E52FF5D0018FA7D /* MKRingProgressView.framework */,
-			);
-			name = Products;
-			sourceTree = "<group>";
-		};
-		508CBF6E1BD6C2C7008A3B4E = {
-			isa = PBXGroup;
-			children = (
-				5025B88C1E52FF5D0018FA7D /* MKRingProgressView.xcodeproj */,
-				508CBF791BD6C2C7008A3B4E /* ActivityRingsExample */,
-				50246417217CCA2B00454379 /* ProgressRingExample */,
-				508CBF781BD6C2C7008A3B4E /* Products */,
-			);
-			sourceTree = "<group>";
-		};
-		508CBF781BD6C2C7008A3B4E /* Products */ = {
-			isa = PBXGroup;
-			children = (
-				508CBF771BD6C2C7008A3B4E /* ActivityRingsExample.app */,
-				50246416217CCA2A00454379 /* ProgressRingExample.app */,
-			);
-			name = Products;
-			sourceTree = "<group>";
-		};
-		508CBF791BD6C2C7008A3B4E /* ActivityRingsExample */ = {
-			isa = PBXGroup;
-			children = (
-				50DEDC431BD7811E009C3882 /* MKRingProgressGroup */,
-				508CBF7A1BD6C2C7008A3B4E /* AppDelegate.swift */,
-				5022C19620B803AB0068B650 /* Icon.swift */,
-				508CBF7C1BD6C2C7008A3B4E /* ViewController.swift */,
-				508CBF7E1BD6C2C7008A3B4E /* Main.storyboard */,
-				508CBF831BD6C2C7008A3B4E /* LaunchScreen.storyboard */,
-				508CBF811BD6C2C7008A3B4E /* Assets.xcassets */,
-				508CBF861BD6C2C7008A3B4E /* Info.plist */,
-			);
-			path = ActivityRingsExample;
-			sourceTree = "<group>";
-		};
-		50DEDC431BD7811E009C3882 /* MKRingProgressGroup */ = {
-			isa = PBXGroup;
-			children = (
-				508CBF911BD6CA0C008A3B4E /* MKRingProgressGroupView.swift */,
-				508CBF941BD6DBC2008A3B4E /* MKRingProgressGroupButton.swift */,
-			);
-			name = MKRingProgressGroup;
-			sourceTree = "<group>";
-		};
-/* End PBXGroup section */
-
-/* Begin PBXNativeTarget section */
-		50246415217CCA2A00454379 /* ProgressRingExample */ = {
-			isa = PBXNativeTarget;
-			buildConfigurationList = 50246425217CCA2B00454379 /* Build configuration list for PBXNativeTarget "ProgressRingExample" */;
-			buildPhases = (
-				50246412217CCA2A00454379 /* Sources */,
-				50246413217CCA2A00454379 /* Frameworks */,
-				50246414217CCA2A00454379 /* Resources */,
-				5024642C217CCB1000454379 /* Embed Frameworks */,
-			);
-			buildRules = (
-			);
-			dependencies = (
-			);
-			name = ProgressRingExample;
-			productName = RingProgressExample;
-			productReference = 50246416217CCA2A00454379 /* ProgressRingExample.app */;
-			productType = "com.apple.product-type.application";
-		};
-		508CBF761BD6C2C7008A3B4E /* ActivityRingsExample */ = {
-			isa = PBXNativeTarget;
-			buildConfigurationList = 508CBF891BD6C2C7008A3B4E /* Build configuration list for PBXNativeTarget "ActivityRingsExample" */;
-			buildPhases = (
-				508CBF731BD6C2C7008A3B4E /* Sources */,
-				508CBF741BD6C2C7008A3B4E /* Frameworks */,
-				508CBF751BD6C2C7008A3B4E /* Resources */,
-				5025B8971E52FFC90018FA7D /* Embed Frameworks */,
-			);
-			buildRules = (
-			);
-			dependencies = (
-			);
-			name = ActivityRingsExample;
-			productName = MKRingProgressViewExample;
-			productReference = 508CBF771BD6C2C7008A3B4E /* ActivityRingsExample.app */;
-			productType = "com.apple.product-type.application";
-		};
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
-		508CBF6F1BD6C2C7008A3B4E /* Project object */ = {
-			isa = PBXProject;
-			attributes = {
-				LastSwiftUpdateCheck = 1000;
-				LastUpgradeCheck = 1020;
-				ORGANIZATIONNAME = "Max Konovalov";
-				TargetAttributes = {
-					50246415217CCA2A00454379 = {
-						CreatedOnToolsVersion = 10.0;
-						ProvisioningStyle = Manual;
-					};
-					508CBF761BD6C2C7008A3B4E = {
-						CreatedOnToolsVersion = 7.0.1;
-						LastSwiftMigration = 0930;
-						ProvisioningStyle = Manual;
-					};
-				};
-			};
-			buildConfigurationList = 508CBF721BD6C2C7008A3B4E /* Build configuration list for PBXProject "MKRingProgressViewExample" */;
-			compatibilityVersion = "Xcode 3.2";
-			developmentRegion = en;
-			hasScannedForEncodings = 0;
-			knownRegions = (
-				en,
-				Base,
-			);
-			mainGroup = 508CBF6E1BD6C2C7008A3B4E;
-			productRefGroup = 508CBF781BD6C2C7008A3B4E /* Products */;
-			projectDirPath = "";
-			projectReferences = (
-				{
-					ProductGroup = 5025B88D1E52FF5D0018FA7D /* Products */;
-					ProjectRef = 5025B88C1E52FF5D0018FA7D /* MKRingProgressView.xcodeproj */;
-				},
-			);
-			projectRoot = "";
-			targets = (
-				508CBF761BD6C2C7008A3B4E /* ActivityRingsExample */,
-				50246415217CCA2A00454379 /* ProgressRingExample */,
-			);
-		};
-/* End PBXProject section */
-
-/* Begin PBXReferenceProxy section */
-		5025B8911E52FF5D0018FA7D /* MKRingProgressView.framework */ = {
-			isa = PBXReferenceProxy;
-			fileType = wrapper.framework;
-			path = MKRingProgressView.framework;
-			remoteRef = 5025B8901E52FF5D0018FA7D /* PBXContainerItemProxy */;
-			sourceTree = BUILT_PRODUCTS_DIR;
-		};
-/* End PBXReferenceProxy section */
-
-/* Begin PBXResourcesBuildPhase section */
-		50246414217CCA2A00454379 /* Resources */ = {
-			isa = PBXResourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				50246423217CCA2B00454379 /* LaunchScreen.storyboard in Resources */,
-				50246420217CCA2B00454379 /* Assets.xcassets in Resources */,
-				5024641E217CCA2B00454379 /* Main.storyboard in Resources */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-		508CBF751BD6C2C7008A3B4E /* Resources */ = {
-			isa = PBXResourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				508CBF851BD6C2C7008A3B4E /* LaunchScreen.storyboard in Resources */,
-				508CBF821BD6C2C7008A3B4E /* Assets.xcassets in Resources */,
-				508CBF801BD6C2C7008A3B4E /* Main.storyboard in Resources */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
-		50246412217CCA2A00454379 /* Sources */ = {
-			isa = PBXSourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				5024641B217CCA2B00454379 /* ViewController.swift in Sources */,
-				507AB38C217E231800D87320 /* ParametersViewController.swift in Sources */,
-				507AB38F217E2A2600D87320 /* Icon.swift in Sources */,
-				50246419217CCA2B00454379 /* AppDelegate.swift in Sources */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-		508CBF731BD6C2C7008A3B4E /* Sources */ = {
-			isa = PBXSourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				508CBF7D1BD6C2C7008A3B4E /* ViewController.swift in Sources */,
-				508CBF7B1BD6C2C7008A3B4E /* AppDelegate.swift in Sources */,
-				508CBF951BD6DBC2008A3B4E /* MKRingProgressGroupButton.swift in Sources */,
-				5022C19720B803AB0068B650 /* Icon.swift in Sources */,
-				508CBF921BD6CA0C008A3B4E /* MKRingProgressGroupView.swift in Sources */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXSourcesBuildPhase section */
-
-/* Begin PBXVariantGroup section */
-		5024641C217CCA2B00454379 /* Main.storyboard */ = {
-			isa = PBXVariantGroup;
-			children = (
-				5024641D217CCA2B00454379 /* Base */,
-			);
-			name = Main.storyboard;
-			sourceTree = "<group>";
-		};
-		50246421217CCA2B00454379 /* LaunchScreen.storyboard */ = {
-			isa = PBXVariantGroup;
-			children = (
-				50246422217CCA2B00454379 /* Base */,
-			);
-			name = LaunchScreen.storyboard;
-			sourceTree = "<group>";
-		};
-		508CBF7E1BD6C2C7008A3B4E /* Main.storyboard */ = {
-			isa = PBXVariantGroup;
-			children = (
-				508CBF7F1BD6C2C7008A3B4E /* Base */,
-			);
-			name = Main.storyboard;
-			sourceTree = "<group>";
-		};
-		508CBF831BD6C2C7008A3B4E /* LaunchScreen.storyboard */ = {
-			isa = PBXVariantGroup;
-			children = (
-				508CBF841BD6C2C7008A3B4E /* Base */,
-			);
-			name = LaunchScreen.storyboard;
-			sourceTree = "<group>";
-		};
-/* End PBXVariantGroup section */
-
-/* Begin XCBuildConfiguration section */
-		50246426217CCA2B00454379 /* Debug */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CLANG_ANALYZER_NONNULL = YES;
-				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
-				CLANG_ENABLE_OBJC_WEAK = YES;
-				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
-				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
-				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
-				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
-				CODE_SIGN_IDENTITY = "iPhone Developer";
-				CODE_SIGN_STYLE = Manual;
-				DEVELOPMENT_TEAM = "";
-				GCC_C_LANGUAGE_STANDARD = gnu11;
-				INFOPLIST_FILE = "$(SRCROOT)/ProgressRingExample/Info.plist";
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
-				MTL_FAST_MATH = YES;
-				PRODUCT_BUNDLE_IDENTIFIER = com.maxkonovalov.ProgressRingExample;
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
-				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
-				TARGETED_DEVICE_FAMILY = "1,2";
-			};
-			name = Debug;
-		};
-		50246427217CCA2B00454379 /* Release */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CLANG_ANALYZER_NONNULL = YES;
-				CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
-				CLANG_ENABLE_OBJC_WEAK = YES;
-				CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES;
-				CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
-				CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
-				CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
-				CODE_SIGN_IDENTITY = "iPhone Developer";
-				CODE_SIGN_STYLE = Manual;
-				DEVELOPMENT_TEAM = "";
-				GCC_C_LANGUAGE_STANDARD = gnu11;
-				INFOPLIST_FILE = "$(SRCROOT)/ProgressRingExample/Info.plist";
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				MTL_FAST_MATH = YES;
-				PRODUCT_BUNDLE_IDENTIFIER = com.maxkonovalov.ProgressRingExample;
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
-				TARGETED_DEVICE_FAMILY = "1,2";
-			};
-			name = Release;
-		};
-		508CBF871BD6C2C7008A3B4E /* Debug */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_SEARCH_USER_PATHS = NO;
-				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
-				CLANG_CXX_LIBRARY = "libc++";
-				CLANG_ENABLE_MODULES = YES;
-				CLANG_ENABLE_OBJC_ARC = 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_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_UNREACHABLE_CODE = YES;
-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				COPY_PHASE_STRIP = NO;
-				DEBUG_INFORMATION_FORMAT = dwarf;
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
-				ENABLE_TESTABILITY = YES;
-				GCC_C_LANGUAGE_STANDARD = gnu99;
-				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;
-				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
-				MTL_ENABLE_DEBUG_INFO = YES;
-				ONLY_ACTIVE_ARCH = YES;
-				SDKROOT = iphoneos;
-				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
-				SWIFT_VERSION = 5.0;
-				TARGETED_DEVICE_FAMILY = "1,2";
-			};
-			name = Debug;
-		};
-		508CBF881BD6C2C7008A3B4E /* Release */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_SEARCH_USER_PATHS = NO;
-				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
-				CLANG_CXX_LIBRARY = "libc++";
-				CLANG_ENABLE_MODULES = YES;
-				CLANG_ENABLE_OBJC_ARC = 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_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_UNREACHABLE_CODE = YES;
-				CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				COPY_PHASE_STRIP = NO;
-				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
-				ENABLE_NS_ASSERTIONS = NO;
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
-				GCC_C_LANGUAGE_STANDARD = gnu99;
-				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;
-				IPHONEOS_DEPLOYMENT_TARGET = 8.2;
-				MTL_ENABLE_DEBUG_INFO = NO;
-				SDKROOT = iphoneos;
-				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
-				SWIFT_VERSION = 5.0;
-				TARGETED_DEVICE_FAMILY = "1,2";
-				VALIDATE_PRODUCT = YES;
-			};
-			name = Release;
-		};
-		508CBF8A1BD6C2C7008A3B4E /* Debug */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CLANG_ENABLE_MODULES = YES;
-				CODE_SIGN_IDENTITY = "iPhone Developer";
-				CODE_SIGN_STYLE = Manual;
-				DEVELOPMENT_TEAM = "";
-				INFOPLIST_FILE = "$(SRCROOT)/ActivityRingsExample/Info.plist";
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				PRODUCT_BUNDLE_IDENTIFIER = com.maxkonovalov.ActivityRingsExample;
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
-				SWIFT_COMPILATION_MODE = singlefile;
-			};
-			name = Debug;
-		};
-		508CBF8B1BD6C2C7008A3B4E /* Release */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES;
-				ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
-				CLANG_ENABLE_MODULES = YES;
-				CODE_SIGN_IDENTITY = "iPhone Developer";
-				CODE_SIGN_STYLE = Manual;
-				DEVELOPMENT_TEAM = "";
-				INFOPLIST_FILE = "$(SRCROOT)/ActivityRingsExample/Info.plist";
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
-				PRODUCT_BUNDLE_IDENTIFIER = com.maxkonovalov.ActivityRingsExample;
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				PROVISIONING_PROFILE_SPECIFIER = "";
-			};
-			name = Release;
-		};
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
-		50246425217CCA2B00454379 /* Build configuration list for PBXNativeTarget "ProgressRingExample" */ = {
-			isa = XCConfigurationList;
-			buildConfigurations = (
-				50246426217CCA2B00454379 /* Debug */,
-				50246427217CCA2B00454379 /* Release */,
-			);
-			defaultConfigurationIsVisible = 0;
-			defaultConfigurationName = Release;
-		};
-		508CBF721BD6C2C7008A3B4E /* Build configuration list for PBXProject "MKRingProgressViewExample" */ = {
-			isa = XCConfigurationList;
-			buildConfigurations = (
-				508CBF871BD6C2C7008A3B4E /* Debug */,
-				508CBF881BD6C2C7008A3B4E /* Release */,
-			);
-			defaultConfigurationIsVisible = 0;
-			defaultConfigurationName = Release;
-		};
-		508CBF891BD6C2C7008A3B4E /* Build configuration list for PBXNativeTarget "ActivityRingsExample" */ = {
-			isa = XCConfigurationList;
-			buildConfigurations = (
-				508CBF8A1BD6C2C7008A3B4E /* Debug */,
-				508CBF8B1BD6C2C7008A3B4E /* Release */,
-			);
-			defaultConfigurationIsVisible = 0;
-			defaultConfigurationName = Release;
-		};
-/* End XCConfigurationList section */
-	};
-	rootObject = 508CBF6F1BD6C2C7008A3B4E /* Project object */;
-}

+ 0 - 7
Dependecies/MKRingProgressView/Example/MKRingProgressViewExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
-   version = "1.0">
-   <FileRef
-      location = "self:MKRingProgressViewExample.xcodeproj">
-   </FileRef>
-</Workspace>

+ 0 - 8
Dependecies/MKRingProgressView/Example/MKRingProgressViewExample.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>IDEDidComputeMac32BitWarning</key>
-	<true/>
-</dict>
-</plist>

+ 0 - 46
Dependecies/MKRingProgressView/Example/ProgressRingExample/AppDelegate.swift

@@ -1,46 +0,0 @@
-//
-//  AppDelegate.swift
-//  RingProgressExample
-//
-//  Created by Max Konovalov on 21/10/2018.
-//  Copyright © 2018 Max Konovalov. All rights reserved.
-//
-
-import UIKit
-
-@UIApplicationMain
-class AppDelegate: UIResponder, UIApplicationDelegate {
-
-    var window: UIWindow?
-
-
-    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
-        //let icon = generateAppIcon(scale: 2)
-        return true
-    }
-
-    func applicationWillResignActive(_ application: UIApplication) {
-        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
-        // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
-    }
-
-    func applicationDidEnterBackground(_ application: UIApplication) {
-        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
-        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
-    }
-
-    func applicationWillEnterForeground(_ application: UIApplication) {
-        // Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
-    }
-
-    func applicationDidBecomeActive(_ application: UIApplication) {
-        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
-    }
-
-    func applicationWillTerminate(_ application: UIApplication) {
-        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
-    }
-
-
-}
-

+ 0 - 116
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Contents.json

@@ -1,116 +0,0 @@
-{
-  "images" : [
-	{
-      "size" : "20x20",
-      "idiom": "iphone",
-	  "filename" : "Icon-20@2x.png",
-      "scale": "2x"
-    },
-	{
-      "size" : "20x20",
-      "idiom": "iphone",
-	  "filename" : "Icon-20@3x.png",
-      "scale": "3x"
-    },
-	{
-      "size" : "20x20",
-      "idiom": "ipad",
-	  "filename" : "Icon-20.png",
-      "scale": "1x"
-    },
-    {
-      "size" : "20x20",
-      "idiom": "ipad",
-	  "filename" : "Icon-20@2x.png",
-      "scale": "2x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "iphone",
-      "filename" : "Icon-29@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "iphone",
-      "filename" : "Icon-29@3x.png",
-      "scale" : "3x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "iphone",
-      "filename" : "Icon-40@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "iphone",
-      "filename" : "Icon-40@3x.png",
-      "scale" : "3x"
-    },
-    {
-      "size" : "60x60",
-      "idiom" : "iphone",
-      "filename" : "Icon-60@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "60x60",
-      "idiom" : "iphone",
-      "filename" : "Icon-60@3x.png",
-      "scale" : "3x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "ipad",
-      "filename" : "Icon-29.png",
-      "scale" : "1x"
-    },
-    {
-      "size" : "29x29",
-      "idiom" : "ipad",
-      "filename" : "Icon-29@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "ipad",
-      "filename" : "Icon-40.png",
-      "scale" : "1x"
-    },
-    {
-      "size" : "40x40",
-      "idiom" : "ipad",
-      "filename" : "Icon-40@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "76x76",
-      "idiom" : "ipad",
-      "filename" : "Icon-76.png",
-      "scale" : "1x"
-    },
-    {
-      "size" : "76x76",
-      "idiom" : "ipad",
-      "filename" : "Icon-76@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "83.5x83.5",
-      "idiom" : "ipad",
-      "filename" : "Icon-83.5@2x.png",
-      "scale" : "2x"
-    },
-    {
-      "size" : "1024x1024",
-      "idiom" : "ios-marketing",
-      "filename" : "Icon-1024.png",
-      "scale" : "1x"
-    }
-  ],
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-1024.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-20.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-20@2x.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-20@3x.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-29.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-29@2x.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-29@3x.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-40.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-40@2x.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-40@3x.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-60@2x.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-60@3x.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-76.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-76@2x.png


BIN
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/AppIcon.appiconset/Icon-83.5@2x.png


+ 0 - 6
Dependecies/MKRingProgressView/Example/ProgressRingExample/Assets.xcassets/Contents.json

@@ -1,6 +0,0 @@
-{
-  "info" : {
-    "version" : 1,
-    "author" : "xcode"
-  }
-}

+ 0 - 50
Dependecies/MKRingProgressView/Example/ProgressRingExample/Base.lproj/LaunchScreen.storyboard

@@ -1,50 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14313.18" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="p1u-gk-dyy">
-    <device id="retina4_7" orientation="portrait">
-        <adaptation id="fullscreen"/>
-    </device>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14283.14"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <scenes>
-        <!--View Controller-->
-        <scene sceneID="EHf-IW-A2E">
-            <objects>
-                <viewController id="01J-lp-oVM" sceneMemberID="viewController">
-                    <layoutGuides>
-                        <viewControllerLayoutGuide type="top" id="JTm-5d-v0A"/>
-                        <viewControllerLayoutGuide type="bottom" id="j55-Bt-gks"/>
-                    </layoutGuides>
-                    <view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
-                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                    </view>
-                    <navigationItem key="navigationItem" id="nqk-xI-E1n"/>
-                </viewController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="991.20000000000005" y="374.66266866566718"/>
-        </scene>
-        <!--Navigation Controller-->
-        <scene sceneID="a5o-8V-zgA">
-            <objects>
-                <navigationController automaticallyAdjustsScrollViewInsets="NO" id="p1u-gk-dyy" sceneMemberID="viewController">
-                    <toolbarItems/>
-                    <navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="HZ8-Uf-7fz">
-                        <rect key="frame" x="0.0" y="20" width="375" height="44"/>
-                        <autoresizingMask key="autoresizingMask"/>
-                    </navigationBar>
-                    <nil name="viewControllers"/>
-                    <connections>
-                        <segue destination="01J-lp-oVM" kind="relationship" relationship="rootViewController" id="bFO-3k-WF1"/>
-                    </connections>
-                </navigationController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="6RH-oF-PQV" userLabel="First Responder" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="52" y="374.66266866566718"/>
-        </scene>
-    </scenes>
-</document>

+ 0 - 257
Dependecies/MKRingProgressView/Example/ProgressRingExample/Base.lproj/Main.storyboard

@@ -1,257 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="14490.70" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="b9c-6n-iGa">
-    <device id="retina4_7" orientation="portrait">
-        <adaptation id="fullscreen"/>
-    </device>
-    <dependencies>
-        <deployment identifier="iOS"/>
-        <plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="14490.49"/>
-        <capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
-    </dependencies>
-    <scenes>
-        <!--MKRingProgressView-->
-        <scene sceneID="4mu-w5-Gye">
-            <objects>
-                <viewController id="9p5-Fd-aiN" customClass="ViewController" customModule="ProgressRingExample" customModuleProvider="target" sceneMemberID="viewController">
-                    <layoutGuides>
-                        <viewControllerLayoutGuide type="top" id="GNP-hK-55E"/>
-                        <viewControllerLayoutGuide type="bottom" id="4rf-bp-Hvk"/>
-                    </layoutGuides>
-                    <view key="view" contentMode="scaleToFill" id="rbL-Hk-hhM">
-                        <rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <subviews>
-                            <view contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="4A9-no-feE" customClass="MKRingProgressView">
-                                <rect key="frame" x="37.5" y="104" width="300" height="300"/>
-                                <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                                <constraints>
-                                    <constraint firstAttribute="height" priority="999" constant="300" id="cZo-gM-paW"/>
-                                    <constraint firstAttribute="width" secondItem="4A9-no-feE" secondAttribute="height" multiplier="1:1" id="r2G-3b-ZfT"/>
-                                </constraints>
-                                <userDefinedRuntimeAttributes>
-                                    <userDefinedRuntimeAttribute type="number" keyPath="progress">
-                                        <real key="value" value="1"/>
-                                    </userDefinedRuntimeAttribute>
-                                    <userDefinedRuntimeAttribute type="number" keyPath="ringWidth">
-                                        <real key="value" value="60"/>
-                                    </userDefinedRuntimeAttribute>
-                                    <userDefinedRuntimeAttribute type="number" keyPath="shadowOpacity">
-                                        <real key="value" value="1"/>
-                                    </userDefinedRuntimeAttribute>
-                                    <userDefinedRuntimeAttribute type="boolean" keyPath="hidesRingForZeroProgress" value="NO"/>
-                                    <userDefinedRuntimeAttribute type="color" keyPath="startColor">
-                                        <color key="value" red="1" green="0.074509803920000006" blue="0.32549019610000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                    </userDefinedRuntimeAttribute>
-                                    <userDefinedRuntimeAttribute type="color" keyPath="endColor">
-                                        <color key="value" red="0.0" green="0.47843137250000001" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                    </userDefinedRuntimeAttribute>
-                                </userDefinedRuntimeAttributes>
-                            </view>
-                            <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" text="1.0" textAlignment="center" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Bxk-e2-pM1">
-                                <rect key="frame" x="177" y="243.5" width="21.5" height="21"/>
-                                <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                                <color key="textColor" white="0.66666666666666663" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                                <nil key="highlightedColor"/>
-                            </label>
-                            <containerView opaque="NO" contentMode="scaleToFill" translatesAutoresizingMaskIntoConstraints="NO" id="F8k-6T-W5S">
-                                <rect key="frame" x="0.0" y="444" width="375" height="223"/>
-                                <constraints>
-                                    <constraint firstAttribute="height" relation="greaterThanOrEqual" constant="176" id="82x-J6-bmb"/>
-                                </constraints>
-                                <connections>
-                                    <segue destination="MBw-Rk-XL8" kind="embed" id="cKO-Ng-ZEJ"/>
-                                </connections>
-                            </containerView>
-                        </subviews>
-                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                        <constraints>
-                            <constraint firstItem="Bxk-e2-pM1" firstAttribute="centerX" secondItem="4A9-no-feE" secondAttribute="centerX" id="1pM-yj-e5a"/>
-                            <constraint firstAttribute="trailing" secondItem="F8k-6T-W5S" secondAttribute="trailing" id="JAk-u9-lYW"/>
-                            <constraint firstItem="4A9-no-feE" firstAttribute="top" secondItem="GNP-hK-55E" secondAttribute="bottom" constant="40" id="RwJ-dH-pv8"/>
-                            <constraint firstItem="4rf-bp-Hvk" firstAttribute="top" secondItem="F8k-6T-W5S" secondAttribute="bottom" id="ZgR-T4-ran"/>
-                            <constraint firstItem="F8k-6T-W5S" firstAttribute="top" secondItem="4A9-no-feE" secondAttribute="bottom" constant="40" id="aUh-HR-asr"/>
-                            <constraint firstItem="4A9-no-feE" firstAttribute="centerX" secondItem="rbL-Hk-hhM" secondAttribute="centerX" id="b90-Y8-16g"/>
-                            <constraint firstItem="Bxk-e2-pM1" firstAttribute="centerY" secondItem="4A9-no-feE" secondAttribute="centerY" id="uRa-ue-1w3"/>
-                            <constraint firstItem="F8k-6T-W5S" firstAttribute="leading" secondItem="rbL-Hk-hhM" secondAttribute="leading" id="xTI-jY-kcj"/>
-                        </constraints>
-                    </view>
-                    <navigationItem key="navigationItem" title="MKRingProgressView" id="AfK-gz-hJx"/>
-                    <connections>
-                        <outlet property="ringProgressView" destination="4A9-no-feE" id="ea7-IZ-765"/>
-                        <outlet property="valueLabel" destination="Bxk-e2-pM1" id="g8K-fc-rJF"/>
-                    </connections>
-                </viewController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="dcb-Xq-vo7" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="2880.8000000000002" y="1057.4212893553224"/>
-        </scene>
-        <!--Parameters View Controller-->
-        <scene sceneID="UIk-6q-xp0">
-            <objects>
-                <tableViewController id="MBw-Rk-XL8" customClass="ParametersViewController" customModule="ProgressRingExample" customModuleProvider="target" sceneMemberID="viewController">
-                    <tableView key="view" clipsSubviews="YES" contentMode="scaleToFill" bounces="NO" bouncesZoom="NO" dataMode="static" style="plain" separatorStyle="default" allowsSelection="NO" rowHeight="44" sectionHeaderHeight="28" sectionFooterHeight="28" id="LNg-IE-YKY">
-                        <rect key="frame" x="0.0" y="0.0" width="375" height="223"/>
-                        <autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
-                        <color key="backgroundColor" white="1" alpha="1" colorSpace="custom" customColorSpace="genericGamma22GrayColorSpace"/>
-                        <sections>
-                            <tableViewSection id="GTM-Qh-OMP">
-                                <cells>
-                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationWidth="0.0" id="8v8-sj-Uqo">
-                                        <rect key="frame" x="0.0" y="0.0" width="375" height="44"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="8v8-sj-Uqo" id="I1P-Ba-e0z">
-                                            <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
-                                            <autoresizingMask key="autoresizingMask"/>
-                                            <subviews>
-                                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" verticalCompressionResistancePriority="250" text="Progress" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="dsO-hM-eI9">
-                                                    <rect key="frame" x="16" y="11.5" width="93" height="21"/>
-                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                                                    <nil key="textColor"/>
-                                                    <nil key="highlightedColor"/>
-                                                </label>
-                                                <slider opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" horizontalCompressionResistancePriority="250" contentHorizontalAlignment="center" contentVerticalAlignment="center" value="1" minValue="0.0" maxValue="2" translatesAutoresizingMaskIntoConstraints="NO" id="t5b-4g-G5k">
-                                                    <rect key="frame" x="115" y="7" width="244" height="31"/>
-                                                    <constraints>
-                                                        <constraint firstAttribute="width" relation="lessThanOrEqual" constant="240" id="0zQ-hV-u3U"/>
-                                                    </constraints>
-                                                    <connections>
-                                                        <action selector="progressChanged:" destination="MBw-Rk-XL8" eventType="valueChanged" id="7Ac-ml-Bpm"/>
-                                                    </connections>
-                                                </slider>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="t5b-4g-G5k" firstAttribute="leading" secondItem="dsO-hM-eI9" secondAttribute="trailing" constant="8" symbolic="YES" id="AgR-Ke-Mi0"/>
-                                                <constraint firstItem="t5b-4g-G5k" firstAttribute="centerY" secondItem="I1P-Ba-e0z" secondAttribute="centerY" id="PU8-Qt-Yda"/>
-                                                <constraint firstItem="dsO-hM-eI9" firstAttribute="centerY" secondItem="I1P-Ba-e0z" secondAttribute="centerY" id="da1-kK-d9v"/>
-                                                <constraint firstAttribute="trailing" secondItem="t5b-4g-G5k" secondAttribute="trailing" constant="18" id="erI-5G-THr"/>
-                                                <constraint firstItem="dsO-hM-eI9" firstAttribute="leading" secondItem="I1P-Ba-e0z" secondAttribute="leading" constant="16" id="f8C-pi-PUt"/>
-                                            </constraints>
-                                        </tableViewCellContentView>
-                                    </tableViewCell>
-                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" selectionStyle="none" hidesAccessoryWhenEditing="NO" indentationWidth="0.0" id="C7J-pv-kiY">
-                                        <rect key="frame" x="0.0" y="44" width="375" height="44"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="C7J-pv-kiY" id="wJG-lm-fcA">
-                                            <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
-                                            <autoresizingMask key="autoresizingMask"/>
-                                            <subviews>
-                                                <segmentedControl opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="left" contentVerticalAlignment="top" segmentControlStyle="plain" selectedSegmentIndex="0" translatesAutoresizingMaskIntoConstraints="NO" id="GjU-8P-aQr">
-                                                    <rect key="frame" x="244" y="8" width="115" height="29"/>
-                                                    <segments>
-                                                        <segment title="Round"/>
-                                                        <segment title="Square"/>
-                                                    </segments>
-                                                    <connections>
-                                                        <action selector="styleChanged:" destination="MBw-Rk-XL8" eventType="valueChanged" id="gfp-X5-ZQl"/>
-                                                    </connections>
-                                                </segmentedControl>
-                                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" text="Style" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="iln-qB-xc5">
-                                                    <rect key="frame" x="16" y="11.5" width="220" height="21"/>
-                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                                                    <nil key="textColor"/>
-                                                    <nil key="highlightedColor"/>
-                                                </label>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="iln-qB-xc5" firstAttribute="centerY" secondItem="wJG-lm-fcA" secondAttribute="centerY" id="7tP-Kd-q4H"/>
-                                                <constraint firstItem="GjU-8P-aQr" firstAttribute="centerY" secondItem="wJG-lm-fcA" secondAttribute="centerY" id="CD7-yb-ayS"/>
-                                                <constraint firstItem="GjU-8P-aQr" firstAttribute="leading" secondItem="iln-qB-xc5" secondAttribute="trailing" constant="8" symbolic="YES" id="LaG-7o-3lx"/>
-                                                <constraint firstAttribute="trailing" secondItem="GjU-8P-aQr" secondAttribute="trailing" constant="16" id="VLL-gh-ucf"/>
-                                                <constraint firstItem="iln-qB-xc5" firstAttribute="leading" secondItem="wJG-lm-fcA" secondAttribute="leading" constant="16" id="jKH-lp-gEL"/>
-                                            </constraints>
-                                        </tableViewCellContentView>
-                                    </tableViewCell>
-                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="0.0" id="wMg-ex-v9y">
-                                        <rect key="frame" x="0.0" y="88" width="375" height="44"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="wMg-ex-v9y" id="ENe-8J-job">
-                                            <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
-                                            <autoresizingMask key="autoresizingMask"/>
-                                            <subviews>
-                                                <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" on="YES" translatesAutoresizingMaskIntoConstraints="NO" id="3Td-4n-FLt">
-                                                    <rect key="frame" x="308" y="6.5" width="51" height="31"/>
-                                                    <color key="onTintColor" red="1" green="0.074509803920000006" blue="0.32549019610000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                                    <connections>
-                                                        <action selector="shadowChanged:" destination="MBw-Rk-XL8" eventType="valueChanged" id="cPT-cu-dxL"/>
-                                                    </connections>
-                                                </switch>
-                                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" text="Shadow" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="QMG-Hg-1fa">
-                                                    <rect key="frame" x="16" y="11.5" width="284" height="21"/>
-                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                                                    <nil key="textColor"/>
-                                                    <nil key="highlightedColor"/>
-                                                </label>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="QMG-Hg-1fa" firstAttribute="centerY" secondItem="ENe-8J-job" secondAttribute="centerY" id="AhX-Fx-mfm"/>
-                                                <constraint firstItem="3Td-4n-FLt" firstAttribute="centerY" secondItem="ENe-8J-job" secondAttribute="centerY" id="fH0-aK-qy4"/>
-                                                <constraint firstItem="3Td-4n-FLt" firstAttribute="leading" secondItem="QMG-Hg-1fa" secondAttribute="trailing" constant="8" symbolic="YES" id="gf2-as-FeV"/>
-                                                <constraint firstItem="QMG-Hg-1fa" firstAttribute="leading" secondItem="ENe-8J-job" secondAttribute="leading" constant="16" id="j4o-1Q-yQ1"/>
-                                                <constraint firstAttribute="trailing" secondItem="3Td-4n-FLt" secondAttribute="trailing" constant="18" id="l0O-cf-bWz"/>
-                                            </constraints>
-                                        </tableViewCellContentView>
-                                    </tableViewCell>
-                                    <tableViewCell clipsSubviews="YES" contentMode="scaleToFill" preservesSuperviewLayoutMargins="YES" selectionStyle="none" indentationWidth="0.0" id="oEb-ID-TiW">
-                                        <rect key="frame" x="0.0" y="132" width="375" height="44"/>
-                                        <autoresizingMask key="autoresizingMask"/>
-                                        <tableViewCellContentView key="contentView" opaque="NO" clipsSubviews="YES" multipleTouchEnabled="YES" contentMode="center" preservesSuperviewLayoutMargins="YES" insetsLayoutMarginsFromSafeArea="NO" tableViewCell="oEb-ID-TiW" id="bxY-Uk-7dx">
-                                            <rect key="frame" x="0.0" y="0.0" width="375" height="43.5"/>
-                                            <autoresizingMask key="autoresizingMask"/>
-                                            <subviews>
-                                                <switch opaque="NO" contentMode="scaleToFill" horizontalHuggingPriority="750" verticalHuggingPriority="750" contentHorizontalAlignment="center" contentVerticalAlignment="center" translatesAutoresizingMaskIntoConstraints="NO" id="9fc-RY-s2O">
-                                                    <rect key="frame" x="308" y="6.5" width="51" height="31"/>
-                                                    <color key="onTintColor" red="1" green="0.074509803920000006" blue="0.32549019610000002" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-                                                    <connections>
-                                                        <action selector="hidesRingForZeroProgressChanged:" destination="MBw-Rk-XL8" eventType="valueChanged" id="I1x-5F-VMu"/>
-                                                    </connections>
-                                                </switch>
-                                                <label opaque="NO" userInteractionEnabled="NO" contentMode="left" horizontalHuggingPriority="251" verticalHuggingPriority="251" horizontalCompressionResistancePriority="250" verticalCompressionResistancePriority="250" text="Hides ring for zero progress" textAlignment="natural" lineBreakMode="tailTruncation" baselineAdjustment="alignBaselines" adjustsFontSizeToFit="NO" translatesAutoresizingMaskIntoConstraints="NO" id="Qrd-16-0Bf">
-                                                    <rect key="frame" x="16" y="11.5" width="284" height="21"/>
-                                                    <fontDescription key="fontDescription" type="system" pointSize="17"/>
-                                                    <nil key="textColor"/>
-                                                    <nil key="highlightedColor"/>
-                                                </label>
-                                            </subviews>
-                                            <constraints>
-                                                <constraint firstItem="9fc-RY-s2O" firstAttribute="leading" secondItem="Qrd-16-0Bf" secondAttribute="trailing" constant="8" symbolic="YES" id="EDB-at-KVd"/>
-                                                <constraint firstItem="9fc-RY-s2O" firstAttribute="centerY" secondItem="bxY-Uk-7dx" secondAttribute="centerY" id="HFn-B8-mKG"/>
-                                                <constraint firstItem="Qrd-16-0Bf" firstAttribute="centerY" secondItem="bxY-Uk-7dx" secondAttribute="centerY" id="hfb-9i-e4y"/>
-                                                <constraint firstAttribute="trailing" secondItem="9fc-RY-s2O" secondAttribute="trailing" constant="18" id="nGx-8H-CKn"/>
-                                                <constraint firstItem="Qrd-16-0Bf" firstAttribute="leading" secondItem="bxY-Uk-7dx" secondAttribute="leading" constant="16" id="rSb-Pb-U5c"/>
-                                            </constraints>
-                                        </tableViewCellContentView>
-                                    </tableViewCell>
-                                </cells>
-                            </tableViewSection>
-                        </sections>
-                        <connections>
-                            <outlet property="dataSource" destination="MBw-Rk-XL8" id="o6r-vb-cre"/>
-                            <outlet property="delegate" destination="MBw-Rk-XL8" id="A6u-uE-s9v"/>
-                        </connections>
-                    </tableView>
-                </tableViewController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="kKa-cU-qDt" userLabel="First Responder" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="3748" y="1055.6221889055473"/>
-        </scene>
-        <!--Navigation Controller-->
-        <scene sceneID="R0w-h5-X3T">
-            <objects>
-                <navigationController automaticallyAdjustsScrollViewInsets="NO" id="b9c-6n-iGa" sceneMemberID="viewController">
-                    <toolbarItems/>
-                    <navigationBar key="navigationBar" contentMode="scaleToFill" insetsLayoutMarginsFromSafeArea="NO" id="OSs-60-Z2e">
-                        <rect key="frame" x="0.0" y="20" width="375" height="44"/>
-                        <autoresizingMask key="autoresizingMask"/>
-                    </navigationBar>
-                    <nil name="viewControllers"/>
-                    <connections>
-                        <segue destination="9p5-Fd-aiN" kind="relationship" relationship="rootViewController" id="82d-XQ-BjA"/>
-                    </connections>
-                </navigationController>
-                <placeholder placeholderIdentifier="IBFirstResponder" id="cKu-RK-F8t" userLabel="First Responder" sceneMemberID="firstResponder"/>
-            </objects>
-            <point key="canvasLocation" x="1941.5999999999999" y="1057.4212893553224"/>
-        </scene>
-    </scenes>
-    <color key="tintColor" red="1" green="0.074509803921568626" blue="0.32549019607843138" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
-</document>

+ 0 - 32
Dependecies/MKRingProgressView/Example/ProgressRingExample/Icon.swift

@@ -1,32 +0,0 @@
-//
-//  Icon.swift
-//  ProgressRingExample
-//
-//  Created by Max Konovalov on 22/10/2018.
-//  Copyright © 2018 Max Konovalov. All rights reserved.
-//
-
-import UIKit
-import MKRingProgressView
-
-func generateAppIcon(scale: CGFloat = 1.0) -> UIImage {
-    let size = CGSize(width: 512, height: 512)
-    let rect = CGRect(origin: .zero, size: size)
-    
-    let icon = UIView(frame: rect)
-    icon.backgroundColor = #colorLiteral(red: 1, green: 1, blue: 1, alpha: 1)
-    
-    let ring = RingProgressView(frame: icon.bounds.insetBy(dx: 66, dy: 66))
-    ring.ringWidth = 93
-    ring.startColor = #colorLiteral(red: 1, green: 0.07450980392, blue: 0.3254901961, alpha: 1)
-    ring.endColor = #colorLiteral(red: 0, green: 0.4784313725, blue: 1, alpha: 1)
-    ring.progress = 1.0
-    icon.addSubview(ring)
-    
-    UIGraphicsBeginImageContextWithOptions(size, true, scale)
-    icon.drawHierarchy(in: rect, afterScreenUpdates: true)
-    let image = UIGraphicsGetImageFromCurrentImageContext()!
-    UIGraphicsEndImageContext()
-    
-    return image
-}

+ 0 - 45
Dependecies/MKRingProgressView/Example/ProgressRingExample/Info.plist

@@ -1,45 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>CFBundleDevelopmentRegion</key>
-	<string>$(DEVELOPMENT_LANGUAGE)</string>
-	<key>CFBundleDisplayName</key>
-	<string>Ring</string>
-	<key>CFBundleExecutable</key>
-	<string>$(EXECUTABLE_NAME)</string>
-	<key>CFBundleIdentifier</key>
-	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundleName</key>
-	<string>$(PRODUCT_NAME)</string>
-	<key>CFBundlePackageType</key>
-	<string>APPL</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
-	<key>CFBundleVersion</key>
-	<string>1</string>
-	<key>LSRequiresIPhoneOS</key>
-	<true/>
-	<key>UILaunchStoryboardName</key>
-	<string>LaunchScreen</string>
-	<key>UIMainStoryboardFile</key>
-	<string>Main</string>
-	<key>UIRequiredDeviceCapabilities</key>
-	<array>
-		<string>armv7</string>
-	</array>
-	<key>UISupportedInterfaceOrientations</key>
-	<array>
-		<string>UIInterfaceOrientationPortrait</string>
-	</array>
-	<key>UISupportedInterfaceOrientations~ipad</key>
-	<array>
-		<string>UIInterfaceOrientationPortrait</string>
-		<string>UIInterfaceOrientationPortraitUpsideDown</string>
-		<string>UIInterfaceOrientationLandscapeLeft</string>
-		<string>UIInterfaceOrientationLandscapeRight</string>
-	</array>
-</dict>
-</plist>

+ 0 - 48
Dependecies/MKRingProgressView/Example/ProgressRingExample/ParametersViewController.swift

@@ -1,48 +0,0 @@
-//
-//  ParametersViewController.swift
-//  ProgressRingExample
-//
-//  Created by Max Konovalov on 22/10/2018.
-//  Copyright © 2018 Max Konovalov. All rights reserved.
-//
-
-import MKRingProgressView
-import UIKit
-
-protocol ParametersViewControllerDelegate: class {
-    func parametersViewControllerDidChangeProgress(_ progress: Double)
-    func parametersViewControllerDidChangeStyle(_ style: RingProgressViewStyle)
-    func parametersViewControllerDidChangeShadowOpacity(_ shadowOpacity: CGFloat)
-    func parametersViewControllerDidChangeHidesRingForZeroProgressValue(_ hidesRingForZeroProgress: Bool)
-}
-
-class ParametersViewController: UITableViewController {
-    weak var delegate: ParametersViewControllerDelegate?
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        tableView.tableFooterView = UIView()
-    }
-    
-    @IBAction func progressChanged(_ sender: UISlider) {
-        let progress = Double(sender.value)
-        delegate?.parametersViewControllerDidChangeProgress(progress)
-    }
-    
-    @IBAction func styleChanged(_ sender: UISegmentedControl) {
-        guard let style = RingProgressViewStyle(rawValue: sender.selectedSegmentIndex) else {
-            return
-        }
-        delegate?.parametersViewControllerDidChangeStyle(style)
-    }
-    
-    @IBAction func shadowChanged(_ sender: UISwitch) {
-        let shadowOpacity: CGFloat = sender.isOn ? 1.0 : 0.0
-        delegate?.parametersViewControllerDidChangeShadowOpacity(shadowOpacity)
-    }
-    
-    @IBAction func hidesRingForZeroProgressChanged(_ sender: UISwitch) {
-        let hidesRingForZeroProgress = sender.isOn
-        delegate?.parametersViewControllerDidChangeHidesRingForZeroProgressValue(hidesRingForZeroProgress)
-    }
-}

+ 0 - 45
Dependecies/MKRingProgressView/Example/ProgressRingExample/ViewController.swift

@@ -1,45 +0,0 @@
-//
-//  ViewController.swift
-//  RingProgressExample
-//
-//  Created by Max Konovalov on 21/10/2018.
-//  Copyright © 2018 Max Konovalov. All rights reserved.
-//
-
-import MKRingProgressView
-import UIKit
-
-class ViewController: UIViewController {
-    @IBOutlet var ringProgressView: RingProgressView!
-    @IBOutlet var valueLabel: UILabel!
-    
-    override func viewDidLayoutSubviews() {
-        super.viewDidLayoutSubviews()
-        ringProgressView.ringWidth = ringProgressView.bounds.width * 0.2
-    }
-    
-    override func prepare(for segue: UIStoryboardSegue, sender: Any?) {
-        if case let parametersViewController as ParametersViewController = segue.destination {
-            parametersViewController.delegate = self
-        }
-    }
-}
-
-extension ViewController: ParametersViewControllerDelegate {
-    func parametersViewControllerDidChangeProgress(_ progress: Double) {
-        ringProgressView.progress = progress
-        valueLabel.text = String(format: "%.2f", progress)
-    }
-    
-    func parametersViewControllerDidChangeStyle(_ style: RingProgressViewStyle) {
-        ringProgressView.style = style
-    }
-    
-    func parametersViewControllerDidChangeShadowOpacity(_ shadowOpacity: CGFloat) {
-        ringProgressView.shadowOpacity = shadowOpacity
-    }
-    
-    func parametersViewControllerDidChangeHidesRingForZeroProgressValue(_ hidesRingForZeroProgress: Bool) {
-        ringProgressView.hidesRingForZeroProgress = hidesRingForZeroProgress
-    }
-}

+ 0 - 22
Dependecies/MKRingProgressView/LICENSE

@@ -1,22 +0,0 @@
-The MIT License (MIT)
-
-Copyright (c) 2015 Max Konovalov
-
-Permission is hereby granted, free of charge, to any person obtaining a copy
-of this software and associated documentation files (the "Software"), to deal
-in the Software without restriction, including without limitation the rights
-to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-copies of the Software, and to permit persons to whom the Software is
-furnished to do so, subject to the following conditions:
-
-The above copyright notice and this permission notice shall be included in all
-copies or substantial portions of the Software.
-
-THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
-IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
-FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
-AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
-LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
-OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
-SOFTWARE.
-

BIN
Dependecies/MKRingProgressView/MKRingProgressView.png


+ 0 - 19
Dependecies/MKRingProgressView/MKRingProgressView.podspec

@@ -1,19 +0,0 @@
-Pod::Spec.new do |s|
-  s.name = 'MKRingProgressView'
-  s.version = '2.2.2'
-  s.summary = 'Ring progress view similar to Activity app on Apple Watch'
-  s.homepage = 'https://github.com/maxkonovalov/MKRingProgressView'
-  s.license = 'MIT'
-  s.author = 'Max Konovalov'
-  s.source = { git: 'https://github.com/maxkonovalov/MKRingProgressView.git', tag: s.version.to_s }
-
-  s.source_files = 'MKRingProgressView/**/*.swift'
-
-  s.ios.deployment_target = '8.2'
-  s.tvos.deployment_target = '9.0'
-
-  s.swift_version = '5.0'
-  s.swift_versions = ['4.0', '4.2', '5.0']
-
-  s.frameworks = 'UIKit'
-end

+ 0 - 342
Dependecies/MKRingProgressView/MKRingProgressView.xcodeproj/project.pbxproj

@@ -1,342 +0,0 @@
-// !$*UTF8*$!
-{
-	archiveVersion = 1;
-	classes = {
-	};
-	objectVersion = 46;
-	objects = {
-
-/* Begin PBXBuildFile section */
-		5022C19A20B872EA0068B650 /* MKRingProgressLayer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5022C19920B872EA0068B650 /* MKRingProgressLayer.swift */; };
-		508526731E52FDC000D611F4 /* MKRingProgressView.h in Headers */ = {isa = PBXBuildFile; fileRef = 508526711E52FDC000D611F4 /* MKRingProgressView.h */; settings = {ATTRIBUTES = (Public, ); }; };
-		5085267B1E52FE7800D611F4 /* MKGradientGenerator.swift in Sources */ = {isa = PBXBuildFile; fileRef = 508526791E52FE7800D611F4 /* MKGradientGenerator.swift */; };
-		5085267C1E52FE7800D611F4 /* MKRingProgressView.swift in Sources */ = {isa = PBXBuildFile; fileRef = 5085267A1E52FE7800D611F4 /* MKRingProgressView.swift */; };
-/* End PBXBuildFile section */
-
-/* Begin PBXFileReference section */
-		5022C19920B872EA0068B650 /* MKRingProgressLayer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MKRingProgressLayer.swift; sourceTree = "<group>"; };
-		5085266E1E52FDC000D611F4 /* MKRingProgressView.framework */ = {isa = PBXFileReference; explicitFileType = wrapper.framework; includeInIndex = 0; path = MKRingProgressView.framework; sourceTree = BUILT_PRODUCTS_DIR; };
-		508526711E52FDC000D611F4 /* MKRingProgressView.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = MKRingProgressView.h; sourceTree = "<group>"; };
-		508526721E52FDC000D611F4 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
-		508526791E52FE7800D611F4 /* MKGradientGenerator.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MKGradientGenerator.swift; sourceTree = "<group>"; };
-		5085267A1E52FE7800D611F4 /* MKRingProgressView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = MKRingProgressView.swift; sourceTree = "<group>"; };
-/* End PBXFileReference section */
-
-/* Begin PBXFrameworksBuildPhase section */
-		5085266A1E52FDC000D611F4 /* Frameworks */ = {
-			isa = PBXFrameworksBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXFrameworksBuildPhase section */
-
-/* Begin PBXGroup section */
-		508526641E52FDC000D611F4 = {
-			isa = PBXGroup;
-			children = (
-				508526701E52FDC000D611F4 /* MKRingProgressView */,
-				5085266F1E52FDC000D611F4 /* Products */,
-			);
-			sourceTree = "<group>";
-		};
-		5085266F1E52FDC000D611F4 /* Products */ = {
-			isa = PBXGroup;
-			children = (
-				5085266E1E52FDC000D611F4 /* MKRingProgressView.framework */,
-			);
-			name = Products;
-			sourceTree = "<group>";
-		};
-		508526701E52FDC000D611F4 /* MKRingProgressView */ = {
-			isa = PBXGroup;
-			children = (
-				508526711E52FDC000D611F4 /* MKRingProgressView.h */,
-				508526791E52FE7800D611F4 /* MKGradientGenerator.swift */,
-				5022C19920B872EA0068B650 /* MKRingProgressLayer.swift */,
-				5085267A1E52FE7800D611F4 /* MKRingProgressView.swift */,
-				508526721E52FDC000D611F4 /* Info.plist */,
-			);
-			path = MKRingProgressView;
-			sourceTree = "<group>";
-		};
-/* End PBXGroup section */
-
-/* Begin PBXHeadersBuildPhase section */
-		5085266B1E52FDC000D611F4 /* Headers */ = {
-			isa = PBXHeadersBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				508526731E52FDC000D611F4 /* MKRingProgressView.h in Headers */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXHeadersBuildPhase section */
-
-/* Begin PBXNativeTarget section */
-		5085266D1E52FDC000D611F4 /* MKRingProgressView */ = {
-			isa = PBXNativeTarget;
-			buildConfigurationList = 508526761E52FDC000D611F4 /* Build configuration list for PBXNativeTarget "MKRingProgressView" */;
-			buildPhases = (
-				508526691E52FDC000D611F4 /* Sources */,
-				5085266A1E52FDC000D611F4 /* Frameworks */,
-				5085266B1E52FDC000D611F4 /* Headers */,
-				5085266C1E52FDC000D611F4 /* Resources */,
-			);
-			buildRules = (
-			);
-			dependencies = (
-			);
-			name = MKRingProgressView;
-			productName = MKRingProgressView;
-			productReference = 5085266E1E52FDC000D611F4 /* MKRingProgressView.framework */;
-			productType = "com.apple.product-type.framework";
-		};
-/* End PBXNativeTarget section */
-
-/* Begin PBXProject section */
-		508526651E52FDC000D611F4 /* Project object */ = {
-			isa = PBXProject;
-			attributes = {
-				LastUpgradeCheck = 1240;
-				ORGANIZATIONNAME = "Max Konovalov";
-				TargetAttributes = {
-					5085266D1E52FDC000D611F4 = {
-						CreatedOnToolsVersion = 8.2.1;
-						LastSwiftMigration = 1020;
-						ProvisioningStyle = Manual;
-					};
-				};
-			};
-			buildConfigurationList = 508526681E52FDC000D611F4 /* Build configuration list for PBXProject "MKRingProgressView" */;
-			compatibilityVersion = "Xcode 3.2";
-			developmentRegion = en;
-			hasScannedForEncodings = 0;
-			knownRegions = (
-				en,
-				Base,
-			);
-			mainGroup = 508526641E52FDC000D611F4;
-			productRefGroup = 5085266F1E52FDC000D611F4 /* Products */;
-			projectDirPath = "";
-			projectRoot = "";
-			targets = (
-				5085266D1E52FDC000D611F4 /* MKRingProgressView */,
-			);
-		};
-/* End PBXProject section */
-
-/* Begin PBXResourcesBuildPhase section */
-		5085266C1E52FDC000D611F4 /* Resources */ = {
-			isa = PBXResourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXResourcesBuildPhase section */
-
-/* Begin PBXSourcesBuildPhase section */
-		508526691E52FDC000D611F4 /* Sources */ = {
-			isa = PBXSourcesBuildPhase;
-			buildActionMask = 2147483647;
-			files = (
-				5085267B1E52FE7800D611F4 /* MKGradientGenerator.swift in Sources */,
-				5022C19A20B872EA0068B650 /* MKRingProgressLayer.swift in Sources */,
-				5085267C1E52FE7800D611F4 /* MKRingProgressView.swift in Sources */,
-			);
-			runOnlyForDeploymentPostprocessing = 0;
-		};
-/* End PBXSourcesBuildPhase section */
-
-/* Begin XCBuildConfiguration section */
-		508526741E52FDC000D611F4 /* Debug */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_SEARCH_USER_PATHS = NO;
-				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
-				CLANG_ANALYZER_NONNULL = YES;
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
-				CLANG_CXX_LIBRARY = "libc++";
-				CLANG_ENABLE_MODULES = YES;
-				CLANG_ENABLE_OBJC_ARC = 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = 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;
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				COPY_PHASE_STRIP = NO;
-				CURRENT_PROJECT_VERSION = 1;
-				DEBUG_INFORMATION_FORMAT = dwarf;
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
-				ENABLE_TESTABILITY = YES;
-				GCC_C_LANGUAGE_STANDARD = gnu99;
-				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;
-				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
-				MTL_ENABLE_DEBUG_INFO = YES;
-				ONLY_ACTIVE_ARCH = YES;
-				SDKROOT = iphoneos;
-				SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
-				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
-				SWIFT_VERSION = 5.0;
-				TARGETED_DEVICE_FAMILY = "1,2";
-				TVOS_DEPLOYMENT_TARGET = 12.0;
-				VERSIONING_SYSTEM = "apple-generic";
-				VERSION_INFO_PREFIX = "";
-			};
-			name = Debug;
-		};
-		508526751E52FDC000D611F4 /* Release */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				ALWAYS_SEARCH_USER_PATHS = NO;
-				CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
-				CLANG_ANALYZER_NONNULL = YES;
-				CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
-				CLANG_CXX_LIBRARY = "libc++";
-				CLANG_ENABLE_MODULES = YES;
-				CLANG_ENABLE_OBJC_ARC = 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_QUOTED_INCLUDE_IN_FRAMEWORK_HEADER = 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;
-				"CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer";
-				COPY_PHASE_STRIP = NO;
-				CURRENT_PROJECT_VERSION = 1;
-				DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
-				ENABLE_NS_ASSERTIONS = NO;
-				ENABLE_STRICT_OBJC_MSGSEND = YES;
-				GCC_C_LANGUAGE_STANDARD = gnu99;
-				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;
-				IPHONEOS_DEPLOYMENT_TARGET = 12.0;
-				MTL_ENABLE_DEBUG_INFO = NO;
-				SDKROOT = iphoneos;
-				SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
-				SWIFT_VERSION = 5.0;
-				TARGETED_DEVICE_FAMILY = "1,2";
-				TVOS_DEPLOYMENT_TARGET = 12.0;
-				VALIDATE_PRODUCT = YES;
-				VERSIONING_SYSTEM = "apple-generic";
-				VERSION_INFO_PREFIX = "";
-			};
-			name = Release;
-		};
-		508526771E52FDC000D611F4 /* Debug */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				APPLICATION_EXTENSION_API_ONLY = YES;
-				CLANG_ENABLE_MODULES = YES;
-				CODE_SIGN_IDENTITY = "";
-				DEFINES_MODULE = YES;
-				DEVELOPMENT_TEAM = "";
-				DYLIB_COMPATIBILITY_VERSION = 1;
-				DYLIB_CURRENT_VERSION = 1;
-				DYLIB_INSTALL_NAME_BASE = "@rpath";
-				INFOPLIST_FILE = MKRingProgressView/Info.plist;
-				INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
-				PRODUCT_BUNDLE_IDENTIFIER = com.maxkonovalov.MKRingProgressView;
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				SKIP_INSTALL = YES;
-				SWIFT_OPTIMIZATION_LEVEL = "-Onone";
-			};
-			name = Debug;
-		};
-		508526781E52FDC000D611F4 /* Release */ = {
-			isa = XCBuildConfiguration;
-			buildSettings = {
-				APPLICATION_EXTENSION_API_ONLY = YES;
-				CLANG_ENABLE_MODULES = YES;
-				CODE_SIGN_IDENTITY = "";
-				DEFINES_MODULE = YES;
-				DEVELOPMENT_TEAM = "";
-				DYLIB_COMPATIBILITY_VERSION = 1;
-				DYLIB_CURRENT_VERSION = 1;
-				DYLIB_INSTALL_NAME_BASE = "@rpath";
-				INFOPLIST_FILE = MKRingProgressView/Info.plist;
-				INSTALL_PATH = "$(LOCAL_LIBRARY_DIR)/Frameworks";
-				LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks";
-				PRODUCT_BUNDLE_IDENTIFIER = com.maxkonovalov.MKRingProgressView;
-				PRODUCT_NAME = "$(TARGET_NAME)";
-				SKIP_INSTALL = YES;
-			};
-			name = Release;
-		};
-/* End XCBuildConfiguration section */
-
-/* Begin XCConfigurationList section */
-		508526681E52FDC000D611F4 /* Build configuration list for PBXProject "MKRingProgressView" */ = {
-			isa = XCConfigurationList;
-			buildConfigurations = (
-				508526741E52FDC000D611F4 /* Debug */,
-				508526751E52FDC000D611F4 /* Release */,
-			);
-			defaultConfigurationIsVisible = 0;
-			defaultConfigurationName = Release;
-		};
-		508526761E52FDC000D611F4 /* Build configuration list for PBXNativeTarget "MKRingProgressView" */ = {
-			isa = XCConfigurationList;
-			buildConfigurations = (
-				508526771E52FDC000D611F4 /* Debug */,
-				508526781E52FDC000D611F4 /* Release */,
-			);
-			defaultConfigurationIsVisible = 0;
-			defaultConfigurationName = Release;
-		};
-/* End XCConfigurationList section */
-	};
-	rootObject = 508526651E52FDC000D611F4 /* Project object */;
-}

+ 0 - 7
Dependecies/MKRingProgressView/MKRingProgressView.xcodeproj/project.xcworkspace/contents.xcworkspacedata

@@ -1,7 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Workspace
-   version = "1.0">
-   <FileRef
-      location = "self:MKRingProgressView.xcodeproj">
-   </FileRef>
-</Workspace>

+ 0 - 8
Dependecies/MKRingProgressView/MKRingProgressView.xcodeproj/project.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

@@ -1,8 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>IDEDidComputeMac32BitWarning</key>
-	<true/>
-</dict>
-</plist>

+ 0 - 76
Dependecies/MKRingProgressView/MKRingProgressView.xcodeproj/xcshareddata/xcschemes/MKRingProgressView.xcscheme

@@ -1,76 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<Scheme
-   LastUpgradeVersion = "1240"
-   version = "1.3">
-   <BuildAction
-      parallelizeBuildables = "YES"
-      buildImplicitDependencies = "YES">
-      <BuildActionEntries>
-         <BuildActionEntry
-            buildForTesting = "YES"
-            buildForRunning = "YES"
-            buildForProfiling = "YES"
-            buildForArchiving = "YES"
-            buildForAnalyzing = "YES">
-            <BuildableReference
-               BuildableIdentifier = "primary"
-               BlueprintIdentifier = "5085266D1E52FDC000D611F4"
-               BuildableName = "MKRingProgressView.framework"
-               BlueprintName = "MKRingProgressView"
-               ReferencedContainer = "container:MKRingProgressView.xcodeproj">
-            </BuildableReference>
-         </BuildActionEntry>
-      </BuildActionEntries>
-   </BuildAction>
-   <TestAction
-      buildConfiguration = "Debug"
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      shouldUseLaunchSchemeArgsEnv = "YES">
-      <Testables>
-      </Testables>
-   </TestAction>
-   <LaunchAction
-      buildConfiguration = "Debug"
-      selectedDebuggerIdentifier = "Xcode.DebuggerFoundation.Debugger.LLDB"
-      selectedLauncherIdentifier = "Xcode.DebuggerFoundation.Launcher.LLDB"
-      launchStyle = "0"
-      useCustomWorkingDirectory = "NO"
-      ignoresPersistentStateOnLaunch = "NO"
-      debugDocumentVersioning = "YES"
-      debugServiceExtension = "internal"
-      allowLocationSimulation = "YES">
-      <MacroExpansion>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "5085266D1E52FDC000D611F4"
-            BuildableName = "MKRingProgressView.framework"
-            BlueprintName = "MKRingProgressView"
-            ReferencedContainer = "container:MKRingProgressView.xcodeproj">
-         </BuildableReference>
-      </MacroExpansion>
-   </LaunchAction>
-   <ProfileAction
-      buildConfiguration = "Release"
-      shouldUseLaunchSchemeArgsEnv = "YES"
-      savedToolIdentifier = ""
-      useCustomWorkingDirectory = "NO"
-      debugDocumentVersioning = "YES">
-      <MacroExpansion>
-         <BuildableReference
-            BuildableIdentifier = "primary"
-            BlueprintIdentifier = "5085266D1E52FDC000D611F4"
-            BuildableName = "MKRingProgressView.framework"
-            BlueprintName = "MKRingProgressView"
-            ReferencedContainer = "container:MKRingProgressView.xcodeproj">
-         </BuildableReference>
-      </MacroExpansion>
-   </ProfileAction>
-   <AnalyzeAction
-      buildConfiguration = "Debug">
-   </AnalyzeAction>
-   <ArchiveAction
-      buildConfiguration = "Release"
-      revealArchiveInOrganizer = "YES">
-   </ArchiveAction>
-</Scheme>

+ 0 - 24
Dependecies/MKRingProgressView/MKRingProgressView/Info.plist

@@ -1,24 +0,0 @@
-<?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
-<plist version="1.0">
-<dict>
-	<key>CFBundleDevelopmentRegion</key>
-	<string>en</string>
-	<key>CFBundleExecutable</key>
-	<string>$(EXECUTABLE_NAME)</string>
-	<key>CFBundleIdentifier</key>
-	<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
-	<key>CFBundleInfoDictionaryVersion</key>
-	<string>6.0</string>
-	<key>CFBundleName</key>
-	<string>$(PRODUCT_NAME)</string>
-	<key>CFBundlePackageType</key>
-	<string>FMWK</string>
-	<key>CFBundleShortVersionString</key>
-	<string>1.0</string>
-	<key>CFBundleVersion</key>
-	<string>$(CURRENT_PROJECT_VERSION)</string>
-	<key>NSPrincipalClass</key>
-	<string></string>
-</dict>
-</plist>

+ 0 - 223
Dependecies/MKRingProgressView/MKRingProgressView/MKGradientGenerator.swift

@@ -1,223 +0,0 @@
-/*
- The MIT License (MIT)
-
- Copyright (c) 2015 Max Konovalov
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
- */
-
-import UIKit
-
-internal final class GradientGenerator {
-
-    var scale: CGFloat = UIScreen.main.scale {
-        didSet {
-            if scale != oldValue {
-                reset()
-            }
-        }
-    }
-
-    var size: CGSize = .zero {
-        didSet {
-            if size != oldValue {
-                reset()
-            }
-        }
-    }
-
-    var colors: [CGColor] = [] {
-        didSet {
-            if colors != oldValue {
-                reset()
-            }
-        }
-    }
-
-    var locations: [Float] = [] {
-        didSet {
-            if locations != oldValue {
-                reset()
-            }
-        }
-    }
-
-    var startPoint: CGPoint = CGPoint(x: 0.5, y: 0.5) {
-        didSet {
-            if startPoint != oldValue {
-                reset()
-            }
-        }
-    }
-
-    var endPoint: CGPoint = CGPoint(x: 1.0, y: 0.5) {
-        didSet {
-            if endPoint != oldValue {
-                reset()
-            }
-        }
-    }
-
-    private var generatedImage: CGImage?
-
-    func reset() {
-        generatedImage = nil
-    }
-
-    func image() -> CGImage {
-        if let image = generatedImage {
-            return image
-        }
-
-        let w = Int(size.width * scale)
-        let h = Int(size.height * scale)
-        let bitsPerComponent: Int = MemoryLayout<UInt8>.size * 8
-        let bytesPerPixel: Int = bitsPerComponent * 4 / 8
-
-        var data = [ARGB]()
-
-        for y in 0..<h {
-            for x in 0..<w {
-                let c = pixelDataForGradient(at: CGPoint(x: x, y: y),
-                                             size: CGSize(width: w, height: h),
-                                             colors: colors,
-                                             locations: locations,
-                                             startPoint: startPoint,
-                                             endPoint: endPoint)
-                data.append(c)
-            }
-        }
-
-        let colorSpace = CGColorSpaceCreateDeviceRGB()
-        let bitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.premultipliedFirst.rawValue)
-
-        let ctx = CGContext(data: &data, width: w, height: h, bitsPerComponent: bitsPerComponent, bytesPerRow: w * bytesPerPixel, space: colorSpace, bitmapInfo: bitmapInfo.rawValue)!
-        ctx.interpolationQuality = .none
-        ctx.setShouldAntialias(false)
-        let img = ctx.makeImage()!
-        generatedImage = img
-        return img
-    }
-
-    private func pixelDataForGradient(at point: CGPoint,
-                                      size: CGSize,
-                                      colors: [CGColor],
-                                      locations: [Float],
-                                      startPoint: CGPoint,
-                                      endPoint: CGPoint) -> ARGB {
-        let t = conicalGradientStop(point, size, startPoint, endPoint)
-        return interpolatedColor(t, colors, locations)
-    }
-
-    private func conicalGradientStop(_ point: CGPoint, _ size: CGSize, _ g0: CGPoint, _ g1: CGPoint) -> Float {
-        let c = CGPoint(x: size.width * g0.x, y: size.height * g0.y)
-        let s = CGPoint(x: size.width * (g1.x - g0.x), y: size.height * (g1.y - g0.y))
-        let q = atan2(s.y, s.x)
-        let p = CGPoint(x: point.x - c.x, y: point.y - c.y)
-        var a = atan2(p.y, p.x) - q
-        if a < 0 {
-            a += 2 * .pi
-        }
-        let t = a / (2 * .pi)
-        return Float(t)
-    }
-
-    private func interpolatedColor(_ t: Float, _ colors: [CGColor], _ locations: [Float]) -> ARGB {
-        assert(!colors.isEmpty)
-        assert(colors.count == locations.count)
-
-        var p0: Float = 0
-        var p1: Float = 1
-
-        var c0 = colors.first!
-        var c1 = colors.last!
-
-        for (i, v) in locations.enumerated() {
-            if v > p0 && t >= v {
-                p0 = v
-                c0 = colors[i]
-            }
-            if v < p1 && t <= v {
-                p1 = v
-                c1 = colors[i]
-            }
-        }
-
-        let p: Float
-        if p0 == p1 {
-            p = 0
-        } else {
-            p = lerp(t, inRange: p0...p1, outRange: 0...1)
-        }
-
-        let color0 = ARGB(c0)
-        let color1 = ARGB(c1)
-
-        return color0.interpolateTo(color1, p)
-    }
-
-}
-
-// MARK: - Color Data
-
-fileprivate struct ARGB {
-    let a: UInt8 = 0xff
-    var r: UInt8
-    var g: UInt8
-    var b: UInt8
-}
-
-extension ARGB: Equatable {
-    static func ==(lhs: ARGB, rhs: ARGB) -> Bool {
-        return (lhs.r == rhs.r && lhs.g == rhs.g && lhs.b == rhs.b)
-    }
-}
-
-extension ARGB {
-
-    init(_ color: CGColor) {
-        let c = color.components?.map { min(max($0, 0.0), 1.0) }
-        switch color.numberOfComponents {
-        case 2:
-            self.init(r: UInt8((c?[0])! * 0xff), g: UInt8((c?[0])! * 0xff), b: UInt8((c?[0])! * 0xff))
-        case 4:
-            self.init(r: UInt8((c?[0])! * 0xff), g: UInt8((c?[1])! * 0xff), b: UInt8((c?[2])! * 0xff))
-        default:
-            self.init(r: 0, g: 0, b: 0)
-        }
-    }
-
-    func interpolateTo(_ color: ARGB, _ t: Float) -> ARGB {
-        let r = lerp(t, self.r, color.r)
-        let g = lerp(t, self.g, color.g)
-        let b = lerp(t, self.b, color.b)
-        return ARGB(r: r, g: g, b: b)
-    }
-
-}
-
-// MARK: - Utility
-
-fileprivate func lerp(_ t: Float, _ a: UInt8, _ b: UInt8) -> UInt8 {
-    return UInt8(Float(a) + min(max(t, 0), 1) * (Float(b) - Float(a)))
-}
-
-fileprivate func lerp(_ value: Float, inRange: ClosedRange<Float>, outRange: ClosedRange<Float>) -> Float {
-    return (value - inRange.lowerBound) * (outRange.upperBound - outRange.lowerBound) / (inRange.upperBound - inRange.lowerBound) + outRange.lowerBound
-}

+ 0 - 327
Dependecies/MKRingProgressView/MKRingProgressView/MKRingProgressLayer.swift

@@ -1,327 +0,0 @@
-/*
- The MIT License (MIT)
- 
- Copyright (c) 2015 Max Konovalov
- 
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
- 
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
- 
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
- */
-
-import UIKit
-
-@objc(MKRingProgressLayer)
-open class RingProgressLayer: CALayer {
-    /// The progress ring start color.
-    @objc open var startColor: CGColor = UIColor.red.cgColor {
-        didSet {
-            setNeedsDisplay()
-        }
-    }
-    
-    /// The progress ring end color.
-    @objc open var endColor: CGColor = UIColor.blue.cgColor {
-        didSet {
-            setNeedsDisplay()
-        }
-    }
-    
-    /// The color of the background ring.
-    @objc open var backgroundRingColor: CGColor? {
-        didSet {
-            setNeedsDisplay()
-        }
-    }
-    
-    /// The width of the progress ring.
-    @objc open var ringWidth: CGFloat = 20 {
-        didSet {
-            setNeedsDisplay()
-        }
-    }
-    
-    /// The style of the progress line end (rounded or straight).
-    @objc open var progressStyle: RingProgressViewStyle = .round {
-        didSet {
-            setNeedsDisplay()
-        }
-    }
-    
-    /// The opacity of the shadow under the progress end.
-    @objc open var endShadowOpacity: CGFloat = 1.0 {
-        didSet {
-            endShadowOpacity = min(max(endShadowOpacity, 0.0), 1.0)
-            setNeedsDisplay()
-        }
-    }
-    
-    /// Whether or not to hide the progress ring when progress is zero.
-    @objc open var hidesRingForZeroProgress: Bool = false {
-        didSet {
-            setNeedsDisplay()
-        }
-    }
-    
-    /// Whether or not to allow anti-aliasing for the generated image.
-    @objc open var allowsAntialiasing: Bool = true {
-        didSet {
-            setNeedsDisplay()
-        }
-    }
-    
-    /// The scale of the generated gradient image.
-    /// Use lower values for better performance and higher values for more precise gradients.
-    @objc open var gradientImageScale: CGFloat = 1.0 {
-        didSet {
-            setNeedsDisplay()
-        }
-    }
-    
-    /// The current progress shown by the view.
-    /// Values less than 0.0 are clamped. Values greater than 1.0 present multiple revolutions of the progress ring.
-    @NSManaged public var progress: CGFloat
-    
-    /// Disable actions for `progress` property.
-    internal var disableProgressAnimation: Bool = false
-    
-    private let gradientGenerator = GradientGenerator()
-    
-    open override class func needsDisplay(forKey key: String) -> Bool {
-        if key == "progress" {
-            return true
-        }
-        return super.needsDisplay(forKey: key)
-    }
-    
-    open override func action(forKey event: String) -> CAAction? {
-        if !disableProgressAnimation, event == "progress" {
-            if let action = super.action(forKey: "opacity") as? CABasicAnimation {
-                let animation = action.copy() as! CABasicAnimation
-                animation.keyPath = event
-                animation.fromValue = presentation()?.value(forKey: event)
-                animation.toValue = nil
-                return animation
-            } else {
-                let animation = CABasicAnimation(keyPath: event)
-                animation.duration = 0.001
-                return animation
-            }
-        }
-        return super.action(forKey: event)
-    }
-    
-    open override func display() {
-        contents = contentImage()
-    }
-    
-    func contentImage() -> CGImage? {
-        let size = bounds.size
-        if #available(iOS 10.0, tvOS 10.0, *) {
-            let format = UIGraphicsImageRendererFormat.default()
-            let image = UIGraphicsImageRenderer(size: size, format: format).image { ctx in
-                drawContent(in: ctx.cgContext)
-            }
-            return image.cgImage
-        } else {
-            UIGraphicsBeginImageContextWithOptions(size, false, 0)
-            guard let ctx = UIGraphicsGetCurrentContext() else {
-                return nil
-            }
-            drawContent(in: ctx)
-            let image = UIGraphicsGetImageFromCurrentImageContext()?.cgImage
-            UIGraphicsEndImageContext()
-            return image
-        }
-    }
-    
-    private func drawContent(in context: CGContext) {
-        context.setShouldAntialias(allowsAntialiasing)
-        context.setAllowsAntialiasing(allowsAntialiasing)
-        
-        let useGradient = startColor != endColor
-        
-        let squareSize = min(bounds.width, bounds.height)
-        let squareRect = CGRect(x: (bounds.width - squareSize) / 2, y: (bounds.height - squareSize) / 2,
-                                width: squareSize, height: squareSize)
-        let gradientRect = squareRect.integral
-        
-        let w = min(ringWidth, squareSize / 2)
-        let r = min(bounds.width, bounds.height) / 2 - w / 2
-        let c = CGPoint(x: bounds.width / 2, y: bounds.height / 2)
-        let p = max(0.0, disableProgressAnimation ? progress : presentation()?.progress ?? 0.0)
-        let angleOffset = CGFloat.pi / 2
-        let angle = 2 * .pi * p - angleOffset
-        let minAngle = 1.1 * atan(0.5 * w / r)
-        let maxAngle = 2 * .pi - 3 * minAngle - angleOffset
-        
-        let circleRect = squareRect.insetBy(dx: w / 2, dy: w / 2)
-        let circlePath = UIBezierPath(ovalIn: circleRect)
-        
-        let angle1 = angle > maxAngle ? maxAngle : angle
-        
-        context.setLineWidth(w)
-        context.setLineCap(progressStyle.lineCap)
-        
-        // Draw backdrop circle
-        
-        context.addPath(circlePath.cgPath)
-        let bgColor = backgroundRingColor ?? startColor.copy(alpha: 0.15)!
-        context.setStrokeColor(bgColor)
-        context.strokePath()
-        
-        // Draw solid arc
-        
-        if angle > maxAngle {
-            let offset = angle - maxAngle
-            
-            let arc2Path = UIBezierPath(arcCenter: c,
-                                        radius: r,
-                                        startAngle: -angleOffset,
-                                        endAngle: offset,
-                                        clockwise: true)
-            context.addPath(arc2Path.cgPath)
-            context.setStrokeColor(startColor)
-            context.strokePath()
-            
-            context.translateBy(x: circleRect.midX, y: circleRect.midY)
-            context.rotate(by: offset)
-            context.translateBy(x: -circleRect.midX, y: -circleRect.midY)
-        }
-        
-        // Draw shadow and progress end
-        
-        if p > 0.0 || !hidesRingForZeroProgress {
-            context.saveGState()
-            
-            if endShadowOpacity > 0.0 {
-                context.addPath(CGPath(__byStroking: circlePath.cgPath,
-                                       transform: nil,
-                                       lineWidth: w,
-                                       lineCap: .round,
-                                       lineJoin: .round,
-                                       miterLimit: 0)!)
-                context.clip()
-                
-                let shadowOffset = CGSize(width: w / 10 * cos(angle + angleOffset),
-                                          height: w / 10 * sin(angle + angleOffset))
-                context.setShadow(offset: shadowOffset,
-                                  blur: w / 3,
-                                  color: UIColor(white: 0.0, alpha: endShadowOpacity).cgColor)
-            }
-            
-            let arcEnd = CGPoint(x: c.x + r * cos(angle1), y: c.y + r * sin(angle1))
-            
-            let shadowPath: UIBezierPath = {
-                switch progressStyle {
-                case .round:
-                    return UIBezierPath(ovalIn: CGRect(x: arcEnd.x - w / 2,
-                                                       y: arcEnd.y - w / 2,
-                                                       width: w,
-                                                       height: w))
-                case .square:
-                    let path = UIBezierPath(rect: CGRect(x: arcEnd.x - w / 2,
-                                                         y: arcEnd.y - 2,
-                                                         width: w,
-                                                         height: 2))
-                    path.apply(CGAffineTransform(translationX: -arcEnd.x, y: -arcEnd.y))
-                    path.apply(CGAffineTransform(rotationAngle: angle1))
-                    path.apply(CGAffineTransform(translationX: arcEnd.x, y: arcEnd.y))
-                    return path
-                }
-            }()
-            
-            let shadowFillColor: CGColor = {
-                let fadeStartProgress: CGFloat = 0.02
-                if !hidesRingForZeroProgress || p > fadeStartProgress {
-                    return startColor
-                }
-                // gradually decrease shadow opacity
-                return startColor.copy(alpha: p / fadeStartProgress)!
-            }()
-            context.addPath(shadowPath.cgPath)
-            context.setFillColor(shadowFillColor)
-            context.fillPath()
-            
-            context.restoreGState()
-        }
-        
-        // Draw gradient arc
-        
-        let gradient: CGImage? = {
-            guard useGradient else {
-                return nil
-            }
-            let s = Float(1.5 * w / (2 * .pi * r))
-            gradientGenerator.scale = gradientImageScale
-            gradientGenerator.size = gradientRect.size
-            gradientGenerator.colors = [endColor, endColor, startColor, startColor]
-            gradientGenerator.locations = [0.0, s, 1.0 - s, 1.0]
-            gradientGenerator.endPoint = CGPoint(x: 0.5 - CGFloat(2 * s), y: 1.0)
-            return gradientGenerator.image()
-        }()
-        
-        if p > 0.0 {
-            let arc1Path = UIBezierPath(arcCenter: c,
-                                        radius: r,
-                                        startAngle: -angleOffset,
-                                        endAngle: angle1,
-                                        clockwise: true)
-            if let gradient = gradient {
-                context.saveGState()
-                
-                context.addPath(CGPath(__byStroking: arc1Path.cgPath,
-                                       transform: nil,
-                                       lineWidth: w,
-                                       lineCap: progressStyle.lineCap,
-                                       lineJoin: progressStyle.lineJoin,
-                                       miterLimit: 0)!)
-                context.clip()
-                
-                context.interpolationQuality = .none
-                context.draw(gradient, in: gradientRect)
-                
-                context.restoreGState()
-            } else {
-                context.setStrokeColor(startColor)
-                context.setLineWidth(w)
-                context.setLineCap(progressStyle.lineCap)
-                context.addPath(arc1Path.cgPath)
-                context.strokePath()
-            }
-        }
-    }
-}
-
-private extension RingProgressViewStyle {
-    var lineCap: CGLineCap {
-        switch self {
-        case .round:
-            return .round
-        case .square:
-            return .butt
-        }
-    }
-    
-    var lineJoin: CGLineJoin {
-        switch self {
-        case .round:
-            return .round
-        case .square:
-            return .miter
-        }
-    }
-}

+ 0 - 19
Dependecies/MKRingProgressView/MKRingProgressView/MKRingProgressView.h

@@ -1,19 +0,0 @@
-//
-//  MKRingProgressView.h
-//  MKRingProgressView
-//
-//  Created by Max Konovalov on 14/02/2017.
-//  Copyright © 2017 Max Konovalov. All rights reserved.
-//
-
-#import <UIKit/UIKit.h>
-
-//! Project version number for MKRingProgressView.
-FOUNDATION_EXPORT double MKRingProgressViewVersionNumber;
-
-//! Project version string for MKRingProgressView.
-FOUNDATION_EXPORT const unsigned char MKRingProgressViewVersionString[];
-
-// In this header, you should import all the public headers of your framework using statements like #import <MKRingProgressView/PublicHeader.h>
-
-

+ 0 - 197
Dependecies/MKRingProgressView/MKRingProgressView/MKRingProgressView.swift

@@ -1,197 +0,0 @@
-/*
- The MIT License (MIT)
-
- Copyright (c) 2015 Max Konovalov
-
- Permission is hereby granted, free of charge, to any person obtaining a copy
- of this software and associated documentation files (the "Software"), to deal
- in the Software without restriction, including without limitation the rights
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
- copies of the Software, and to permit persons to whom the Software is
- furnished to do so, subject to the following conditions:
-
- The above copyright notice and this permission notice shall be included in
- all copies or substantial portions of the Software.
-
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
- THE SOFTWARE.
- */
-
-import UIKit
-
-@objc(MKRingProgressViewStyle)
-public enum RingProgressViewStyle: Int {
-    case round
-    case square
-}
-
-@IBDesignable
-@objc(MKRingProgressView)
-open class RingProgressView: UIView {
-    /// The start color of the progress ring.
-    @IBInspectable open var startColor: UIColor {
-        get {
-            return UIColor(cgColor: ringProgressLayer.startColor)
-        }
-        set {
-            ringProgressLayer.startColor = newValue.cgColor
-        }
-    }
-
-    /// The end color of the progress ring.
-    @IBInspectable open var endColor: UIColor {
-        get {
-            return UIColor(cgColor: ringProgressLayer.endColor)
-        }
-        set {
-            ringProgressLayer.endColor = newValue.cgColor
-        }
-    }
-
-    /// The color of backdrop circle, visible at progress values between 0.0 and 1.0.
-    /// If not specified, `startColor` with 15% opacity will be used.
-    @IBInspectable open var backgroundRingColor: UIColor? {
-        get {
-            if let color = ringProgressLayer.backgroundRingColor {
-                return UIColor(cgColor: color)
-            }
-            return nil
-        }
-        set {
-            ringProgressLayer.backgroundRingColor = newValue?.cgColor
-        }
-    }
-
-    /// The width of the progress ring. Defaults to `20`.
-    @IBInspectable open var ringWidth: CGFloat {
-        get {
-            return ringProgressLayer.ringWidth
-        }
-        set {
-            ringProgressLayer.ringWidth = newValue
-        }
-    }
-
-    /// The style of the progress line end. Defaults to `round`.
-    @objc open var style: RingProgressViewStyle {
-        get {
-            return ringProgressLayer.progressStyle
-        }
-        set {
-            ringProgressLayer.progressStyle = newValue
-        }
-    }
-
-    /// The opacity of the shadow below progress line end. Defaults to `1.0`.
-    /// Values outside the [0,1] range will be clamped.
-    @IBInspectable open var shadowOpacity: CGFloat {
-        get {
-            return ringProgressLayer.endShadowOpacity
-        }
-        set {
-            ringProgressLayer.endShadowOpacity = newValue
-        }
-    }
-
-    /// Whether or not to hide the progress ring when progress is zero. Defaults to `false`.
-    @IBInspectable open var hidesRingForZeroProgress: Bool {
-        get {
-            return ringProgressLayer.hidesRingForZeroProgress
-        }
-        set {
-            ringProgressLayer.hidesRingForZeroProgress = newValue
-        }
-    }
-
-    /// The Antialiasing switch. Defaults to `true`.
-    @IBInspectable open var allowsAntialiasing: Bool {
-        get {
-            return ringProgressLayer.allowsAntialiasing
-        }
-        set {
-            ringProgressLayer.allowsAntialiasing = newValue
-        }
-    }
-
-    /// The scale of the generated gradient image.
-    /// Use lower values for better performance and higher values for more precise gradients.
-    @IBInspectable open var gradientImageScale: CGFloat {
-        get {
-            return ringProgressLayer.gradientImageScale
-        }
-        set {
-            ringProgressLayer.gradientImageScale = newValue
-        }
-    }
-
-    /// The progress. Can be any nonnegative number, every whole number corresponding to one full revolution, i.e. 1.0 -> 360°, 2.0 -> 720°, etc. Defaults to `0.0`. Animatable.
-    @IBInspectable open var progress: Double {
-        get {
-            return Double(ringProgressLayer.progress)
-        }
-        set {
-            ringProgressLayer.progress = CGFloat(newValue)
-        }
-    }
-
-    open override class var layerClass: AnyClass {
-        return RingProgressLayer.self
-    }
-
-    private var ringProgressLayer: RingProgressLayer {
-        return layer as! RingProgressLayer
-    }
-
-    public override init(frame: CGRect) {
-        super.init(frame: frame)
-        setup()
-    }
-
-    public required init?(coder aDecoder: NSCoder) {
-        super.init(coder: aDecoder)
-        setup()
-    }
-
-    init() {
-        super.init(frame: .zero)
-        setup()
-    }
-
-    private func setup() {
-        layer.drawsAsynchronously = true
-        layer.contentsScale = UIScreen.main.scale
-        isAccessibilityElement = true
-        #if swift(>=4.2)
-        accessibilityTraits = UIAccessibilityTraits.updatesFrequently
-        #else
-        accessibilityTraits = UIAccessibilityTraitUpdatesFrequently
-        #endif
-        accessibilityLabel = "Ring progress"
-    }
-
-    open override func prepareForInterfaceBuilder() {
-        super.prepareForInterfaceBuilder()
-        ringProgressLayer.disableProgressAnimation = true
-    }
-
-    // MARK: Accessibility
-
-    private var overriddenAccessibilityValue: String?
-
-    open override var accessibilityValue: String? {
-        get {
-            if let override = overriddenAccessibilityValue {
-                return override
-            }
-            return String(format: "%.f%%", progress * 100)
-        }
-        set {
-            overriddenAccessibilityValue = newValue
-        }
-    }
-}

+ 0 - 87
Dependecies/MKRingProgressView/README.md

@@ -1,87 +0,0 @@
-# MKRingProgressView
-
-[![Language](http://img.shields.io/badge/language-swift-brightgreen.svg?style=flat)](https://developer.apple.com/swift)
-[![Platform](https://img.shields.io/cocoapods/p/MKRingProgressView.svg?style=flat)](http://cocoapods.org/pods/MKRingProgressView)
-[![License](https://img.shields.io/cocoapods/l/MKRingProgressView.svg?style=flat)](http://cocoapods.org/pods/MKRingProgressView)
-[![Version](https://img.shields.io/cocoapods/v/MKRingProgressView.svg?style=flat)](http://cocoapods.org/pods/MKRingProgressView)
-[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)
-
-
-Ring progress view similar to Activity app on Apple Watch
-
-<img src="MKRingProgressView.png" alt="MKRingProgressView" width=375>
-
-## Features
-
-- Progress animation
-- Customizable start/end and backdrop ring colors
-- Customizable ring width
-- Customizable progress line end style
-- Customizable shadow under progress line end
-- Progress values above 100% (or 360°) can also be displayed
-
-## Installation
-
-### CocoaPods
-
-To install `MKRingProgressView` via [CocoaPods](http://cocoapods.org), add the following line to your Podfile:
-
-```
-pod 'MKRingProgressView'
-```
-
-### Carthage
-
-To install `MKRingProgressView` via [Carthage](https://github.com/Carthage/Carthage#if-youre-building-for-ios-tvos-or-watchos), add the following line to your Cartfile:
-
-```
-github "maxkonovalov/MKRingProgressView"
-```
-
-## Usage
-
-See the example Xcode project. It contains 2 targets:
-- **ProgressRingExample** - a simple example containing a single progress ring with adjustable parameters.
-- **ActivityRingsExample** - an advanced usage example replicating Activity app by Apple. It also contains additional classes for convenient grouping of 3 ring progress views together.
-
-### Interface Builder
-
-`MKRingProgressView` can be set up in Interface Builder. To use it, set the custom view class to `MKRingProgressView`. Most of the control's parameters can be customized in Interface Builder.
-
-### Code
-
-```swift
-let ringProgressView = RingProgressView(frame: CGRect(x: 0, y: 100, width: 100, height: 100))
-ringProgressView.startColor = .red
-ringProgressView.endColor = .magenta
-ringProgressView.ringWidth = 25
-ringProgressView.progress = 0.0
-view.addSubview(ringProgressView)
-```
-
-The `progress` value can be animated the same way you would normally animate any property using `UIView`'s block-based animations: 
-
-```swift
-UIView.animate(withDuration: 0.5) {
-    ringProgressView.progress = 1.0
-}
-```
-
-## Performance
-
-To achieve better performance the following options are possible:
-
-- Set `gradientImageScale` to lower values like `0.5` (defaults to `1.0`)
-- Set `startColor` and `endColor` to the same value
-- Set `shadowOpacity` to `0.0`
-- Set `allowsAntialiasing` to `false`
-
-## Requirements
-
-- iOS 8.2
-- tvOS 9.0
-- Xcode 10, Swift 4+
-
-## License
-
-`MKRingProgressView` is available under the MIT license. See the LICENSE file for more info.

+ 0 - 34
Dependecies/SwiftCharts/.gitignore

@@ -1,34 +0,0 @@
-# Xcode
-#
-build/
-*.pbxuser
-!default.pbxuser
-*.mode1v3
-!default.mode1v3
-*.mode2v3
-!default.mode2v3
-*.perspectivev3
-!default.perspectivev3
-xcuserdata
-*.xccheckout
-*.moved-aside
-DerivedData
-*.hmap
-*.ipa
-*.xcuserstate
-.DS_Store
-
-# CocoaPods
-#
-# We recommend against adding the Pods directory to your .gitignore. However
-# you should judge for yourself, the pros and cons are mentioned at:
-# http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control
-#
-Pods
-
-# Carthage
-#
-# Add this line if you want to avoid checking in source code from Carthage dependencies.
-# Carthage/Checkouts
-
-Carthage/Build

+ 0 - 145
Dependecies/SwiftCharts/CHANGELOG.md

@@ -1,145 +0,0 @@
-# Change Log
-All notable changes to this project will be documented in this file.
-This project adheres to [Semantic Versioning](http://semver.org/).
-
-## [Unreleased]
-
-## [0.6.5] - 2019.03.30
-- Correct deployment target
-
-## [0.6.4] - 2019.03.29
-- Swift 5.0 upgrade
-
-
-## [0.6.3] - 2018.09.30
-- Swift 4.2 upgrade
-
-
-## [0.6.2] - 2018.09.15
-- Fix iPad demo crash
-- Add missing AppIcon image sizes
-- Fix Xcode 10 compilation
-- Fix dividing by zero while calculating axis inner frame
-- Fill area width fixed: now it is equal to graph line width
-- Expose bar views, e.g. to enable highlighting by external events
-
-## [0.6.1] - 2017.12.04
-- Fix area chart broken with straight line generator
-- Fix unclipped container behind content view, don't mask if there's no clip rect
-- Implemented gradient fill for curved areas
-- Added support for gradient line charts
-- Make candle stick fill colours configurable
-- ChartPointViewBarStacked: allowing only rounding some corners
-- Make candle stick fill colours configurable, show usage in example
-- Fixed 2 leaks setting stackedTapHandler 
-- Bar chart axis labels now use provided label font and color
-- Swift 4 support
-- Fix passing incorrect parameter to Zoomable
-
-## [0.6] - 2017.04.23
-- Fix guidelines overlap with axis lines
-- Fix axis line minor irregularities (fixes #151)
-- Make ChartPointsLayer.display(Chart) open
-- Allow to retrieve frames of axis labels
-- Separate axis from layer with related UI elements (refactoring)
-- Implement dynamic axis values and labels generators (multiplier, fixed, non-overapping, nice numbers, suffix, date)
-- Zooming & panning
-- Allow to set line join/cap
-- Allow to set padding in points for axis values
-- Implement global tap handling
-- Allow to set fixed bar width for grouped bars
-- Improve info bubble
-- Implement axis tap handling
-- Add multiline support to tracker, modify gesture handling work well with zoom & pan
-- Implement tap handling for bars and stack frames
-- Implement animators
-- Implement catmull rom path generator
-- Add modes to views layer to add subviews to scale&translate subviews as part of own transform or only translate by updating their positions individually
-- Allow to generate custom views in bars(plain, grouped, stacked) and line layer
-- Implement elastic zoom/pan
-- Fix dashed path not showing when line is not animated
-- Implement grouped bars companion layer (to add e.g. labels to individual grouped bars).
-- Remove unnecessary use of self, improve formatting
-- Don't force unwrap context
-- Add custom transform mode to ChartPointsViewsLayer.
-- Allow to disable axis layer modification of chart's frame
-- Allow to show chart points outside of the chart's inner frame 
-- Add example for ranged axis and rotation handling
-- Adjust "Custom units" example to show how to set a fixed scrollable area / initial zoom.
-- Allow to use gradients in ChartPointsAreaLayer
-- Allow to use bars with rounded corners
-- Diverse other improvements and fixes
-
-## [0.5] - 2016.11.23
-- Add multi-chart tracker layer
-- Add dashed line support
-- Migrate to Swift 2.3
-- Migrate to Swift 3.0
-- Fix division by 0 in axis layer
-- Fix not being able to use reversed axis values
-
-## [0.4] - 2016.05.29
-- Fix tracker showing NaN on constant coordinate
-- Pass tension values to cubic line to be able to modify curviness
-- Add tvOS target
-- Fix value of ChartAxisValue does not update in subsequent calls to copy
-- Fix axis stroke width setting has no effect
-- Add public init so to ChartLayerBase to allow it to be subclassed
-- Update examples to use ChartAxisValueDouble instead of ChartAxisValueFloat (deprecated)
-- Make ChartPoint, ChartAxisValue and subclasses conform to CustomStringConvertible
-- Use closure to map dates instead of date formatter for more flexibility
-- Improve inline documentation
-- Allow to change text alignment of y axis labels
-- Make ChartPointsScatterLayer class along with its' properties and methods public for subclassing outside swift module
-- Use flatMap instead of reduce to improve performance
-- Don't sort axis values in axis layer
-- Move labels in y axis if they overlap
-- Fix dividers not showing in upper x axis
-- Fix line layer blocking touch
-- Fix memory leak in CoordExample (issue #101)
-- Add top right coord space initialisation helper
-
-## [0.3] - 2015.09.28
-- Merge swift2.0 in master
-
-## [0.2.5] - 2015.08.31
-- Fix stacked bar frames displaying incorrectly when start is not 0
-- Improve project organization
-- Make usage of ChartAxisValue clearer, improve docs
-- Use only Double instead of CGFloat for axis values, deprecate ChartAxisValueFloat and ChartAxisValueFloatScreenLoc
-
-## [0.2.4] - 2015.08.09
-- Automatic generation of trendlines
-- Add Carthage support
-
-## [0.2.3]
-- Allow rotating y axis title label
-- Add LineChart to create (multi)line chart with few lines
-- Add BarChart to create bar chart with few lines
-- Change axis value's scalar type to Double to fix inaccuracies when using dates
-
-## [0.2.2]
-- Refactor circle and bubble views, now ChartPointEllipseView
-- Rename BubbleView in InfoBubble and move it to example project
-
-## [0.2.1] - 2015-05-24
-- Improve performance drawing guidelines
-- Generate calculation intensive coordinates spaces in the background (examples)
-- Performance improvements calculating axis labels size
-
-## [0.2] - 2015-05-22
-
-### Added
-- iOS7 support
-- Bars example with variable axes
-- Stacked bars layer and example
-- Bubble chart layer and example, example includes functionality to map model values to colors from gradient bar
-- Scatter chart layer and example
-- Bars layer, +/- bars with dynamic gradient example 
-- Grouped bars layer and example
-
-### Removed
-- Bars example with horizontal axis - now included in variable axes example
-
-## [0.1] - 2015-05-10
-First import, pods settings

+ 0 - 96
Dependecies/SwiftCharts/Examples/AppDelegate.swift

@@ -1,96 +0,0 @@
-//
-//  AppDelegate.swift
-//  Examples
-//
-//  Created by ischuetz on 08/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-
-@UIApplicationMain
-class AppDelegate: UIResponder, UIApplicationDelegate, UISplitViewControllerDelegate {
-
-    var window: UIWindow?
-
-
-    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
-
-        if UIDevice.current.userInterfaceIdiom == .pad {
-            
-            let splitViewController = self.window!.rootViewController as! UISplitViewController
-            let navigationController = splitViewController.viewControllers.last as! UINavigationController
-            splitViewController.delegate = self
-            
-            if #available(iOS 8.0, *) {
-                navigationController.topViewController?.navigationItem.leftBarButtonItem = splitViewController.displayModeButtonItem
-            }
-        }
-        
-        return true
-
-    }
-
-    func applicationWillResignActive(_ application: UIApplication) {
-        // Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
-        // Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
-    }
-
-    func applicationDidEnterBackground(_ application: UIApplication) {
-        // Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
-        // If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
-    }
-
-    func applicationWillEnterForeground(_ application: UIApplication) {
-        // Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
-    }
-
-    func applicationDidBecomeActive(_ application: UIApplication) {
-        // Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
-    }
-
-    func applicationWillTerminate(_ application: UIApplication) {
-        // Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
-    }
-
-    // MARK: - Split view
-
-    func splitViewController(_ splitViewController: UISplitViewController, collapseSecondary secondaryViewController:UIViewController, onto primaryViewController:UIViewController) -> Bool {
-        if let secondaryAsNavController = secondaryViewController as? UINavigationController {
-            if let topAsDetailController = secondaryAsNavController.topViewController as? DetailViewController {
-                if topAsDetailController.detailItem == nil {
-                    // Return true to indicate that we have handled the collapse by doing nothing; the secondary controller will be discarded.
-                    return true
-                }
-            }
-        }
-        return false
-    }
-    
-    fileprivate func setSplitSwipeEnabled(_ enabled: Bool) {
-        if UIDevice.current.userInterfaceIdiom == UIUserInterfaceIdiom.pad {
-            let splitViewController = UIApplication.shared.delegate?.window!!.rootViewController as! UISplitViewController
-            splitViewController.presentsWithGesture = enabled
-        }
-    }
-    
-    func splitViewController(_ svc: UISplitViewController, willHide aViewController: UIViewController, with barButtonItem: UIBarButtonItem, for pc: UIPopoverController) {
-        
-        let navigationController = svc.viewControllers[svc.viewControllers.count-1] as! UINavigationController
-        if let topAsDetailController = navigationController.topViewController as? DetailViewController {
-                barButtonItem.title = "Examples"
-                topAsDetailController.navigationItem.setLeftBarButton(barButtonItem, animated: true)
-        }
-    }
-}
-
-
-// src: http://stackoverflow.com/a/27399688/930450
-extension UISplitViewController {
-    func toggleMasterView() {
-        if #available(iOS 8.0, *) {
-            let barButtonItem = self.displayModeButtonItem
-            UIApplication.shared.sendAction(barButtonItem.action!, to: barButtonItem.target, from: nil, for: nil)
-        }
-    }
-}

+ 0 - 132
Dependecies/SwiftCharts/Examples/DetailViewController.swift

@@ -1,132 +0,0 @@
-//
-//  DetailViewController.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 20/04/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-
-class DetailViewController: UIViewController, UISplitViewControllerDelegate {
-    
-    @IBOutlet weak var detailDescriptionLabel: UILabel!
-    
-    lazy private(set) var chartFrame: CGRect! = {
-        CGRect(x: 0, y: 80, width: self.view.frame.size.width, height: self.view.frame.size.height - 80)
-    }()
-    
-    var detailItem: Example? {
-        didSet {
-            configureView()
-        }
-    }
-    var currentExampleController: UIViewController?
-    
-    func configureView() {
-        
-        if let example: Example = detailItem  {
-            switch example {
-            case .helloWorld:
-                setSplitSwipeEnabled(true)
-                showExampleController(HelloWorld())
-            case .bars:
-                setSplitSwipeEnabled(true)
-                showExampleController(BarsExample())
-            case .stackedBars:
-                setSplitSwipeEnabled(true)
-                showExampleController(StackedBarsExample())
-            case .barsPlusMinus:
-                setSplitSwipeEnabled(true)
-                showExampleController(BarsPlusMinusWithGradientExample())
-            case .groupedBars:
-                setSplitSwipeEnabled(true)
-                showExampleController(GroupedBarsExample())
-            case .barsStackedGrouped:
-                setSplitSwipeEnabled(true)
-                showExampleController(GroupedAndStackedBarsExample())
-            case .scatter:
-                setSplitSwipeEnabled(true)
-                showExampleController(ScatterExample())
-            case .notifications:
-                setSplitSwipeEnabled(true)
-                showExampleController(NotificationsExample())
-            case .target:
-                setSplitSwipeEnabled(true)
-                showExampleController(TargetExample())
-            case .areas:
-                setSplitSwipeEnabled(true)
-                showExampleController(AreasExample())
-            case .rangedAxis:
-                setSplitSwipeEnabled(true)
-                showExampleController(RangedAxisExample())
-            case .bubble:
-                setSplitSwipeEnabled(true)
-                showExampleController(BubbleExample())
-            case .combination:
-                setSplitSwipeEnabled(true)
-                showExampleController(BarsPlusMinusAndLinesExample())
-            case .coords:
-                setSplitSwipeEnabled(true)
-                showExampleController(CoordsExample())
-            case .tracker:
-                setSplitSwipeEnabled(false)
-                showExampleController(TrackerExample())
-            case .multiTracker:
-                setSplitSwipeEnabled(false)
-                showExampleController(MultiTrackerExample())
-            case .equalSpacing:
-                setSplitSwipeEnabled(true)
-                showExampleController(EqualSpacingExample())
-            case .customUnits:
-                setSplitSwipeEnabled(true)
-                showExampleController(CustomUnitsExample())
-            case .multival:
-                setSplitSwipeEnabled(true)
-                showExampleController(MultipleLabelsExample())
-            case .multiAxis:
-                setSplitSwipeEnabled(true)
-                showExampleController(MultipleAxesExample())
-            case .multiAxisInteractive:
-                setSplitSwipeEnabled(true)
-                showExampleController(MultipleAxesInteractiveExample())
-            case .candleStick:
-                setSplitSwipeEnabled(true)
-                showExampleController(CandleStickExample())
-            case .cubiclines:
-                setSplitSwipeEnabled(true)
-                showExampleController(CubicLinesExample())
-            case .cubiclinesWithGradient:
-                setSplitSwipeEnabled(true)
-                showExampleController(CubicLinesWithGradientExample())
-            case .notNumeric:
-                setSplitSwipeEnabled(true)
-                showExampleController(NotNumericExample())
-            case .candleStickInteractive:
-                setSplitSwipeEnabled(false)
-                showExampleController(CandleStickInteractiveExample())
-            case .trendline:
-                setSplitSwipeEnabled(true)
-                showExampleController(TrendlineExample())
-            }
-        }
-    }
-    
-    fileprivate func showExampleController(_ controller: UIViewController) {
-        if let currentExampleController = currentExampleController {
-            currentExampleController.removeFromParent()
-            currentExampleController.view.removeFromSuperview()
-        }
-        addChild(controller)
-        view.addSubview(controller.view)
-        currentExampleController = controller
-    }
-    
-    fileprivate func setSplitSwipeEnabled(_ enabled: Bool) {
-        if UIDevice.current.userInterfaceIdiom == UIUserInterfaceIdiom.pad {
-            let splitViewController = UIApplication.shared.delegate?.window!!.rootViewController as! UISplitViewController
-            splitViewController.presentsWithGesture = enabled
-        }
-    }
-}
-

+ 0 - 172
Dependecies/SwiftCharts/Examples/Examples/AreasExample.swift

@@ -1,172 +0,0 @@
-//
-//  AreasExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class AreasExample: UIViewController, ChartDelegate {
-
-    fileprivate var chart: Chart? // arc
-
-    fileprivate var popups: [UIView] = []
-
-    override func viewDidLoad() {
-        super.viewDidLoad()
-
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-
-        let chartPoints1 = [(0, 50), (2, 65), (4, 125), (6, 140)].map{ChartPoint(x: ChartAxisValueInt($0.0, labelSettings: labelSettings), y: ChartAxisValueInt($0.1))}
-        let chartPoints2 = [(0, 150), (2, 100), (4, 200), (6, 60)].map{ChartPoint(x: ChartAxisValueInt($0.0, labelSettings: labelSettings), y: ChartAxisValueInt($0.1))}
-        let chartPoints3 = [(0, 200), (2, 210), (4, 260), (6, 290)].map{ChartPoint(x: ChartAxisValueInt($0.0, labelSettings: labelSettings), y: ChartAxisValueInt($0.1))}
-        
-        let allChartPoints = (chartPoints1 + chartPoints2 + chartPoints3).sorted {(obj1, obj2) in return obj1.x.scalar < obj2.x.scalar}
-        
-        let xValues: [ChartAxisValue] = (NSOrderedSet(array: allChartPoints).array as! [ChartPoint]).map{$0.x}
-        let yValues = ChartAxisValuesStaticGenerator.generateYAxisValuesWithChartPoints(allChartPoints, minSegmentCount: 5, maxSegmentCount: 20, multiple: 50, axisValueGenerator: {ChartAxisValueDouble($0, labelSettings: labelSettings)}, addPaddingSegmentIfEdge: false)
-        
-        let xModel = ChartAxisModel(axisValues: xValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings))
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-        let chartFrame = ExamplesDefaults.chartFrame(view.bounds)
-        var chartSettings = ExamplesDefaults.chartSettingsWithPanZoom
-        chartSettings.trailing = 20
-        chartSettings.labelsToAxisSpacingX = 20
-        chartSettings.labelsToAxisSpacingY = 20
-        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-        
-        let c1 = UIColor(red: 0.1, green: 0.1, blue: 0.9, alpha: 0.4)
-        let c2 = UIColor(red: 0.9, green: 0.1, blue: 0.1, alpha: 0.4)
-        let c3 = UIColor(red: 0.1, green: 0.9, blue: 0.1, alpha: 0.4)
-        
-        let lineModel1 = ChartLineModel(chartPoints: chartPoints1, lineColor: UIColor.black, animDuration: 1, animDelay: 0)
-        let lineModel2 = ChartLineModel(chartPoints: chartPoints2, lineColor: UIColor.black, animDuration: 1, animDelay: 0)
-        let lineModel3 = ChartLineModel(chartPoints: chartPoints3, lineColor: UIColor.black, animDuration: 1, animDelay: 0)
-        
-        let chartPointsLineLayer = ChartPointsLineLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, lineModels: [lineModel1, lineModel2, lineModel3], pathGenerator: CatmullPathGenerator())
-        
-        let chartPointsLayer1 = ChartPointsAreaLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints1, areaColors: [c1], animDuration: 3, animDelay: 0, addContainerPoints: true, pathGenerator: chartPointsLineLayer.pathGenerator)
-        let chartPointsLayer2 = ChartPointsAreaLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints2, areaColors: [c2], animDuration: 3, animDelay: 0, addContainerPoints: true, pathGenerator: chartPointsLineLayer.pathGenerator)
-        let chartPointsLayer3 = ChartPointsAreaLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints3, areaColors: [c3], animDuration: 3, animDelay: 0, addContainerPoints: true, pathGenerator: chartPointsLineLayer.pathGenerator)
-        
-        var selectedView: ChartPointTextCircleView?
-        
-        let circleViewGenerator = {[weak self] (chartPointModel: ChartPointLayerModel, layer: ChartPointsLayer, chart: Chart) -> UIView? in guard let weakSelf = self else {return nil}
-            
-            let (chartPoint, screenLoc) = (chartPointModel.chartPoint, chartPointModel.screenLoc)
-            
-            let v = ChartPointTextCircleView(chartPoint: chartPoint, center: screenLoc, diameter: Env.iPad ? 50 : 30, cornerRadius: Env.iPad ? 24: 15, borderWidth: Env.iPad ? 2 : 1, font: ExamplesDefaults.fontWithSize(Env.iPad ? 14 : 8))
-            v.viewTapped = {view in
-                for p in weakSelf.popups {p.removeFromSuperview()}
-                selectedView?.selected = false
-                
-                let w: CGFloat = Env.iPad ? 250 : 150
-                let h: CGFloat = Env.iPad ? 100 : 80
-                
-                if let chartViewScreenLoc = layer.containerToGlobalScreenLoc(chartPoint) {
-                    let x: CGFloat = {
-                        let attempt = chartViewScreenLoc.x - (w/2)
-                        let leftBound: CGFloat = chart.bounds.origin.x
-                        let rightBound = chart.bounds.size.width - 5
-                        if attempt < leftBound {
-                            return view.frame.origin.x
-                        } else if attempt + w > rightBound {
-                            return rightBound - w
-                        }
-                        return attempt
-                    }()
-
-                    let frame = CGRect(x: x, y: chartViewScreenLoc.y - (h + (Env.iPad ? 30 : 12)), width: w, height: h)
-                    
-                    let bubbleView = InfoBubble(point: chartViewScreenLoc, frame: frame, arrowWidth: Env.iPad ? 40 : 28, arrowHeight: Env.iPad ? 20 : 14, bgColor: UIColor.black, arrowX: chartViewScreenLoc.x - x, arrowY: -1) // TODO don't calculate this here
-                    chart.view.addSubview(bubbleView)
-                    
-                    bubbleView.transform = CGAffineTransform(scaleX: 0, y: 0).concatenating(CGAffineTransform(translationX: 0, y: 100))
-                    let infoView = UILabel(frame: CGRect(x: 0, y: 10, width: w, height: h - 30))
-                    infoView.textColor = UIColor.white
-                    infoView.backgroundColor = UIColor.black
-                    infoView.text = "Some text about \(chartPoint)"
-                    infoView.font = ExamplesDefaults.fontWithSize(Env.iPad ? 14 : 12)
-                    infoView.textAlignment = NSTextAlignment.center
-                    
-                    bubbleView.addSubview(infoView)
-                    weakSelf.popups.append(bubbleView)
-                    
-                    UIView.animate(withDuration: 0.2, delay: 0, options: UIView.AnimationOptions(), animations: {
-                        view.selected = true
-                        selectedView = view
-                        
-                        bubbleView.transform = CGAffineTransform.identity
-                    }, completion: {finished in})
-                }
-            }
-            
-            UIView.animate(withDuration: 0.7, delay: 0, usingSpringWithDamping: 0.6, initialSpringVelocity: 0, options: UIView.AnimationOptions(), animations: {
-                let w: CGFloat = v.frame.size.width
-                let h: CGFloat = v.frame.size.height
-                let frame = CGRect(x: screenLoc.x - (w/2), y: screenLoc.y - (h/2), width: w, height: h)
-                v.frame = frame
-            }, completion: nil)
-        
-            return v
-        }
-        
-        let itemsDelay: Float = 0.08
-
-        // To not have circles clipped by the chart bounds, pass clipViews: false (and ChartSettings.customClipRect in case you want to clip them by other bounds)
-        let chartPointsCircleLayer1 = ChartPointsViewsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints1, viewGenerator: circleViewGenerator, displayDelay: 0.9, delayBetweenItems: itemsDelay, mode: .translate)
-        
-        let chartPointsCircleLayer2 = ChartPointsViewsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints2, viewGenerator: circleViewGenerator, displayDelay: 1.8, delayBetweenItems: itemsDelay, mode: .translate)
-        
-        let chartPointsCircleLayer3 = ChartPointsViewsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints3, viewGenerator: circleViewGenerator, displayDelay: 2.7, delayBetweenItems: itemsDelay, mode: .translate)
-        
-        let settings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesDottedLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: settings)
-        
-        let chart = Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                chartPointsLayer1,
-                chartPointsLayer2,
-                chartPointsLayer3,
-                chartPointsLineLayer,
-                chartPointsCircleLayer1,
-                chartPointsCircleLayer2,
-                chartPointsCircleLayer3
-            ]
-        )
-        
-        chart.delegate = self
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-
-    fileprivate func removePopups() {
-        for popup in popups {
-            popup.removeFromSuperview()
-        }
-    }
-    
-    // MARK: - ChartDelegate
-    
-    func onZoom(scaleX: CGFloat, scaleY: CGFloat, deltaX: CGFloat, deltaY: CGFloat, centerX: CGFloat, centerY: CGFloat, isGesture: Bool) {
-        removePopups()
-    }
-    
-    func onPan(transX: CGFloat, transY: CGFloat, deltaX: CGFloat, deltaY: CGFloat, isGesture: Bool, isDeceleration: Bool) {
-        removePopups()
-    }
-    
-    func onTap(_ models: [TappedChartPointLayerModels<ChartPoint>]) {
-    }
-}

+ 0 - 172
Dependecies/SwiftCharts/Examples/Examples/BarsExample.swift

@@ -1,172 +0,0 @@
-//
-//  BarsExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-// This example uses a normal view generator to create bars. This allows a high degree of customization at view level, since any UIView can be used.
-// Alternatively it's possible to use ChartBarsLayer (see e.g. implementation of BarsChart for a simple example), which provides more ready to use, bar-specific functionality, but is accordingly more constrained.
-class BarsExample: UIViewController {
-    
-    fileprivate var chart: Chart?
-    
-    let sideSelectorHeight: CGFloat = 50
-    
-    fileprivate func barsChart(horizontal: Bool) -> Chart {
-        let tuplesXY = [(2, 8), (4, 9), (6, 10), (8, 12), (12, 17)]
-
-        func reverseTuples(_ tuples: [(Int, Int)]) -> [(Int, Int)] {
-            return tuples.map{($0.1, $0.0)}
-        }
-        
-        let chartPoints = (horizontal ? reverseTuples(tuplesXY) : tuplesXY).map{ChartPoint(x: ChartAxisValueInt($0.0), y: ChartAxisValueInt($0.1))}
-        
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-
-        let generator = ChartAxisGeneratorMultiplier(2)
-        let labelsGenerator = ChartAxisLabelsGeneratorFunc {scalar in
-            return ChartAxisLabel(text: "\(scalar)", settings: labelSettings)
-        }
-        let xGenerator = ChartAxisGeneratorMultiplier(2)
-        
-        let xModel = ChartAxisModel(firstModelValue: 0, lastModelValue: 20, axisTitleLabels: [ChartAxisLabel(text: "Axis title", settings: labelSettings)], axisValuesGenerator: xGenerator, labelsGenerator: labelsGenerator)
-        let yModel = ChartAxisModel(firstModelValue: 0, lastModelValue: 20, axisTitleLabels: [ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical())], axisValuesGenerator: generator, labelsGenerator: labelsGenerator)
-        
-        let barViewGenerator = {(chartPointModel: ChartPointLayerModel, layer: ChartPointsViewsLayer, chart: Chart) -> UIView? in
-            let bottomLeft = layer.modelLocToScreenLoc(x: 0, y: 0)
-            
-            let barWidth: CGFloat = Env.iPad ? 60 : 30
-            
-            let settings = ChartBarViewSettings(animDuration: 0.5)
-            
-            let (p1, p2): (CGPoint, CGPoint) = {
-                if horizontal {
-                    return (CGPoint(x: bottomLeft.x, y: chartPointModel.screenLoc.y), CGPoint(x: chartPointModel.screenLoc.x, y: chartPointModel.screenLoc.y))
-                } else {
-                    return (CGPoint(x: chartPointModel.screenLoc.x, y: bottomLeft.y), CGPoint(x: chartPointModel.screenLoc.x, y: chartPointModel.screenLoc.y))
-                }
-            }()
-            return ChartPointViewBar(p1: p1, p2: p2, width: barWidth, bgColor: UIColor.blue.withAlphaComponent(0.6), settings: settings)
-        }
-        
-        let frame = ExamplesDefaults.chartFrame(view.bounds)
-        let chartFrame = chart?.frame ?? CGRect(x: frame.origin.x, y: frame.origin.y, width: frame.size.width, height: frame.size.height - sideSelectorHeight)
-        
-        let chartSettings = ExamplesDefaults.chartSettingsWithPanZoom
-
-        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-        
-        let chartPointsLayer = ChartPointsViewsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints, viewGenerator: barViewGenerator)
-        
-        let settings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesDottedLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: settings)
-        
-        return Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                chartPointsLayer
-            ]
-        )
-    }
-    
-    fileprivate func showChart(horizontal: Bool) {
-        self.chart?.clearView()
-        
-        let chart = barsChart(horizontal: horizontal)
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-    
-    override func viewDidLoad() {
-        showChart(horizontal: false)
-        if let chart = chart {
-            let sideSelector = DirSelector(frame: CGRect(x: 0, y: chart.frame.origin.y + chart.frame.size.height, width: view.frame.size.width, height: sideSelectorHeight), controller: self)
-            view.addSubview(sideSelector)
-        }
-    }
-    
-    
-    class DirSelector: UIView {
-        
-        let horizontal: UIButton
-        let vertical: UIButton
-        
-        weak var controller: BarsExample?
-        
-        fileprivate let buttonDirs: [UIButton : Bool]
-        
-        init(frame: CGRect, controller: BarsExample) {
-            
-            self.controller = controller
-            
-            horizontal = UIButton()
-            horizontal.setTitle("Horizontal", for: UIControl.State())
-            vertical = UIButton()
-            vertical.setTitle("Vertical", for: UIControl.State())
-            
-            buttonDirs = [horizontal : true, vertical : false]
-            
-            super.init(frame: frame)
-            
-            addSubview(horizontal)
-            addSubview(vertical)
-            
-            for button in [horizontal, vertical] {
-                button.titleLabel?.font = ExamplesDefaults.fontWithSize(14)
-                button.setTitleColor(UIColor.blue, for: UIControl.State())
-                button.addTarget(self, action: #selector(DirSelector.buttonTapped(_:)), for: .touchUpInside)
-            }
-        }
-        
-        @objc func buttonTapped(_ sender: UIButton) {
-            let horizontal = sender == self.horizontal ? true : false
-            controller?.showChart(horizontal: horizontal)
-        }
-        
-        override func didMoveToSuperview() {
-            let views = [horizontal, vertical]
-            for v in views {
-                v.translatesAutoresizingMaskIntoConstraints = false
-            }
-            
-            let namedViews = views.enumerated().map{index, view in
-                ("v\(index)", view)
-            }
-            
-            var viewsDict = Dictionary<String, UIView>()
-            for namedView in namedViews {
-                viewsDict[namedView.0] = namedView.1
-            }
-            
-            let buttonsSpace: CGFloat = Env.iPad ? 20 : 10
-            
-            let hConstraintStr = namedViews.reduce("H:|") {str, tuple in
-                "\(str)-(\(buttonsSpace))-[\(tuple.0)]"
-            }
-            
-            let vConstraits = namedViews.flatMap {NSLayoutConstraint.constraints(withVisualFormat: "V:|[\($0.0)]", options: NSLayoutConstraint.FormatOptions(), metrics: nil, views: viewsDict)}
-            
-            addConstraints(NSLayoutConstraint.constraints(withVisualFormat: hConstraintStr, options: NSLayoutConstraint.FormatOptions(), metrics: nil, views: viewsDict)
-                + vConstraits)
-        }
-        
-        required init(coder aDecoder: NSCoder) {
-            fatalError("init(coder:) has not been implemented")
-        }
-    }
-}
-
-
-
-

Разница между файлами не показана из-за своего большого размера
+ 0 - 150
Dependecies/SwiftCharts/Examples/Examples/BarsPlusMinusAndLinesExample.swift


+ 0 - 198
Dependecies/SwiftCharts/Examples/Examples/BarsPlusMinusWithGradientExample.swift

@@ -1,198 +0,0 @@
-//
-//  BarsPlusMinusWithGradientExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class BarsPlusMinusWithGradientExample: UIViewController {
-    
-    fileprivate var chart: Chart? // arc
-    
-    fileprivate let gradientPicker: GradientPicker? // to pick the colors of the bars
-    
-    override init(nibName nibNameOrNil: String?, bundle nibBundleOrNil: Bundle?) {
-        gradientPicker = GradientPicker(width: 200)
-        super.init(nibName: nil, bundle: nil)
-    }
-    
-    required init(coder aDecoder: NSCoder) {
-        fatalError("init(coder:) has not been implemented")
-    }
-    
-    override func viewDidLoad() {
-        
-        let vals: [(title: String, val: CGFloat)] = [
-            ("U", -75),
-            ("T", -65),
-            ("S", -50),
-            ("R", -45),
-            ("Q", -40),
-            ("P", -30),
-            ("O", -20),
-            ("N", -10),
-            ("M", -5),
-            ("L", -0),
-            ("K", 10),
-            ("J", 15),
-            ("I", 20),
-            ("H", 30),
-            ("G", 35),
-            ("F", 40),
-            ("E", 50),
-            ("D", 60),
-            ("C", 65),
-            ("B", 70),
-            ("A", 75)
-        ]
-        
-        let (minVal, maxVal): (CGFloat, CGFloat) = vals.reduce((min: CGFloat(0), max: CGFloat(0))) {tuple, val in
-            (min: min(tuple.min, val.val), max: max(tuple.max, val.val))
-        }
-        let length: CGFloat = maxVal - minVal
-        
-        let zero = ChartAxisValueDouble(0)
-        let bars: [ChartBarModel] = vals.enumerated().map {index, tuple in
-            let percentage = (tuple.val - minVal - 0.01) / length // FIXME without -0.01 bar with 1 (100 perc) is black
-            let color = gradientPicker?.colorForPercentage(percentage).withAlphaComponent(0.6) ?? {print("No gradient picker, defaulting to black"); return UIColor.black}()
-            return ChartBarModel(constant: ChartAxisValueDouble(Double(index)), axisValue1: zero, axisValue2: ChartAxisValueDouble(Double(tuple.val)), bgColor: color)
-        }
-        
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-
-        let labelsGenerator = ChartAxisLabelsGeneratorFunc {scalar in
-            return ChartAxisLabel(text: "\(scalar)", settings: labelSettings)
-        }
-        let xGenerator = ChartAxisGeneratorMultiplier(20)
-        
-        let xModel = ChartAxisModel(firstModelValue: -80, lastModelValue: 80, axisTitleLabels: [ChartAxisLabel(text: "Axis title", settings: labelSettings)], axisValuesGenerator: xGenerator, labelsGenerator: labelsGenerator)
-
-        let yValues = [ChartAxisValueString(order: -1)] + vals.enumerated().map {index, tuple in ChartAxisValueString(tuple.0, order: index, labelSettings: labelSettings)} + [ChartAxisValueString(order: vals.count)]
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-        
-        let chartFrame = ExamplesDefaults.chartFrame(view.bounds)
-        
-        // calculate coords space in the background to keep UI smooth
-        DispatchQueue.global(qos: .background).async {
-            
-            let chartSettings = ExamplesDefaults.chartSettingsWithPanZoom
-
-            let coordsSpace = ChartCoordsSpaceLeftTopSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-            
-            DispatchQueue.main.async {
-                
-                let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-                
-                let barViewSettings = ChartBarViewSettings(animDuration: 0.5, selectionViewUpdater: ChartViewSelectorBrightness(selectedFactor: 0.5))
-                let barsLayer = ChartBarsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, bars: bars, horizontal: true, barWidth: Env.iPad ? 40 : 16, settings: barViewSettings)
-                
-                let settings = ChartGuideLinesLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-                let guidelinesLayer = ChartGuideLinesLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, axis: .x, settings: settings)
-                
-                // create x zero guideline as view to be in front of the bars
-                let dummyZeroXChartPoint = ChartPoint(x: ChartAxisValueDouble(0), y: ChartAxisValueDouble(0))
-                let xZeroGuidelineLayer = ChartPointsViewsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: [dummyZeroXChartPoint], viewGenerator: {(chartPointModel, layer, chart) -> UIView? in
-                    let width: CGFloat = 2
-                    let v = UIView(frame: CGRect(x: chartPointModel.screenLoc.x - width / 2, y: chart.contentView.bounds.origin.y, width: width, height: innerFrame.size.height))
-                    v.backgroundColor = UIColor(red: 1, green: 69 / 255, blue: 0, alpha: 1)
-                    return v
-                })
-                
-                let chart = Chart(
-                    frame: chartFrame,
-                    innerFrame: innerFrame,
-                    settings: chartSettings,
-                    layers: [
-                        xAxisLayer,
-                        yAxisLayer,
-                        guidelinesLayer,
-                        barsLayer,
-                        xZeroGuidelineLayer
-                    ]
-                )
-                
-                self.view.addSubview(chart.view)
-                self.chart = chart
-            }
-        }
-    }
-    
-    fileprivate class GradientPicker {
-        
-        let gradientImg: UIImage
-        
-        lazy private(set) var imgData: UnsafePointer<UInt8>? = {
-            let pixelData = self.gradientImg.cgImage?.dataProvider?.data
-            return CFDataGetBytePtr(pixelData)
-        }()
-        
-        init?(width: CGFloat) {
-            
-            let gradient: CAGradientLayer = CAGradientLayer()
-            gradient.frame = CGRect(x: 0, y: 0, width: width, height: 1)
-            gradient.colors = [UIColor.red.cgColor, UIColor.yellow.cgColor, UIColor.cyan.cgColor, UIColor.blue.cgColor]
-            gradient.startPoint = CGPoint(x: 0, y: 0.5)
-            gradient.endPoint = CGPoint(x: 1.0, y: 0.5)
-            
-            let imgHeight = 1
-            let imgWidth = Int(gradient.bounds.size.width)
-            
-            let bitmapBytesPerRow = imgWidth * 4
-            
-            let colorSpace = CGColorSpaceCreateDeviceRGB()
-            let bitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.premultipliedLast.rawValue).rawValue
-
-            guard let context = CGContext(data: nil,
-                width: imgWidth,
-                height: imgHeight,
-                bitsPerComponent: 8,
-                bytesPerRow: bitmapBytesPerRow,
-                space: colorSpace,
-                bitmapInfo: bitmapInfo) else {
-                    print("Couldn't create context")
-                    return nil
-            }
-            
-            UIGraphicsBeginImageContext(gradient.bounds.size)
-            gradient.render(in: context)
-            
-            guard let gradientImg = (context.makeImage().map{UIImage(cgImage: $0)}) else {
-                print("Couldn't create image")
-                UIGraphicsEndImageContext()
-                return nil
-            }
-
-            UIGraphicsEndImageContext()
-            self.gradientImg = gradientImg
-        }
-        
-        func colorForPercentage(_ percentage: CGFloat) -> UIColor {
-            guard let data = imgData else {print("Couldn't get imgData, returning black"); return UIColor.black}
-            
-            let xNotRounded = gradientImg.size.width * percentage
-            let x = 4 * (floor(abs(xNotRounded / 4)))
-            let pixelIndex = Int(x * 4)
-            
-            let color = UIColor(
-                red: CGFloat(data[pixelIndex + 0]) / 255.0,
-                green: CGFloat(data[pixelIndex + 1]) / 255.0,
-                blue: CGFloat(data[pixelIndex + 2]) / 255.0,
-                alpha: CGFloat(data[pixelIndex + 3]) / 255.0
-            )
-            return color
-        }
-        
-        required init(coder aDecoder: NSCoder) {
-            fatalError("init(coder:) has not been implemented")
-        }
-    }
-}
-
-
-
-
-

+ 0 - 232
Dependecies/SwiftCharts/Examples/Examples/BubbleExample.swift

@@ -1,232 +0,0 @@
-//
-//  ScatterExample.swift
-//  Examples
-//
-//  Created by ischuetz on 16/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import CoreGraphics
-import SwiftCharts
-
-class BubbleExample: UIViewController {
-
-    fileprivate var chart: Chart?
-    
-    fileprivate let colorBarHeight: CGFloat = 50
-
-    fileprivate let useViewsLayer = true
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let frame = ExamplesDefaults.chartFrame(view.bounds)
-        let chartFrame = CGRect(x: frame.origin.x, y: frame.origin.y, width: frame.size.width, height: frame.size.height - colorBarHeight)
-        let colorBar = ColorBar(frame: CGRect(x: 0, y: chartFrame.origin.y + chartFrame.size.height, width: view.frame.size.width, height: colorBarHeight), c1: UIColor.red, c2: UIColor.green)
-        view.addSubview(colorBar)
-        
-        
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-        
-        func toColor(_ percentage: Double) -> UIColor {
-            return colorBar.colorForPercentage(percentage).withAlphaComponent(0.6)
-        }
-
-        let rawData: [(Double, Double, Double, UIColor)] = [
-          (2, 2, 100, toColor(0)),
-          (2.1, 5, 250, toColor(0)),
-          (4, 4, 200, toColor(0.2)),
-          (2.3, 5, 150, toColor(0.7)),
-          (6, 7, 120, toColor(0.9)),
-          (8, 3, 50, toColor(1)),
-          (2, 4.5, 80, toColor(0.7)),
-          (2, 5.2, 50, toColor(0.4)),
-          (2, 4, 100, toColor(0.3)),
-          (2.7, 5.5, 200, toColor(0.5)),
-          (1.7, 2.8, 150, toColor(0.7)),
-          (4.4, 8, 120, toColor(0.9)),
-          (5, 6.3, 250, toColor(1)),
-          (6, 8, 100, toColor(0)),
-          (4, 8.5, 200, toColor(0.5)),
-          (8, 5, 200, toColor(0.6)),
-          (8.5, 10, 150, toColor(0.7)),
-          (9, 11, 120, toColor(0.6)),
-          (10, 6, 100, toColor(1)),
-          (11, 7, 100, toColor(0)),
-          (11, 4, 200, toColor(0.5)),
-          (11.5, 10, 150, toColor(0.7)),
-          (12, 7, 120, toColor(0.9)),
-          (12, 9, 250, toColor(0.8))
-        ]
-
-        let chartPoints: [ChartPointBubble] = rawData.map{ChartPointBubble(x: ChartAxisValueDouble($0, labelSettings: labelSettings), y: ChartAxisValueDouble($1), diameterScalar: $2, bgColor: $3)}
-
-        let xValues = stride(from: -2, through: 14, by: 2).map {ChartAxisValueInt($0, labelSettings: labelSettings)}
-        let yValues = stride(from: -2, through: 12, by: 2).map {ChartAxisValueInt($0, labelSettings: labelSettings)}
-
-        let xModel = ChartAxisModel(axisValues: xValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings))
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-
-        let chartSettings = ExamplesDefaults.chartSettingsWithPanZoom
-
-        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-        
-        let bubbleLayer = bubblesLayer(xAxisLayer, yAxisLayer: yAxisLayer, chartInnerFrame: innerFrame, chartPoints: chartPoints)
-        
-        let guidelinesLayerSettings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesDottedLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: guidelinesLayerSettings)
-
-        let guidelinesHighlightLayerSettings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.red, linesWidth: 1, dotWidth: 4, dotSpacing: 4)
-        let guidelinesHighlightLayer = ChartGuideLinesForValuesDottedLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, settings: guidelinesHighlightLayerSettings, axisValuesX: [ChartAxisValueDouble(0)], axisValuesY: [ChartAxisValueDouble(0)])
-        
-        let chart = Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                guidelinesHighlightLayer,
-                bubbleLayer
-            ]
-        )
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-    
-    // We can use a view based layer for easy animation (or interactivity), in which case we use the default chart points layer with a generator to create bubble views.
-    // On the other side, if we don't need animation or want a better performance, we use ChartPointsBubbleLayer, which instead of creating views, renders directly to the chart's context.
-    fileprivate func bubblesLayer(_ xAxisLayer: ChartAxisLayer, yAxisLayer: ChartAxisLayer, chartInnerFrame: CGRect, chartPoints: [ChartPointBubble]) -> ChartLayer {
-        
-        let maxBubbleDiameter: Double = 30, minBubbleDiameter: Double = 2
-        
-        if useViewsLayer == true {
-                
-            let (minDiameterScalar, maxDiameterScalar): (Double, Double) = chartPoints.reduce((min: 0, max: 0)) {tuple, chartPoint in
-                (min: min(tuple.min, chartPoint.diameterScalar), max: max(tuple.max, chartPoint.diameterScalar))
-            }
-            
-            let diameterFactor = (maxBubbleDiameter - minBubbleDiameter) / (maxDiameterScalar - minDiameterScalar)
-
-            return ChartPointsViewsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints, viewGenerator: {(chartPointModel, layer, chart) -> UIView? in
-
-                let diameter = CGFloat(chartPointModel.chartPoint.diameterScalar * diameterFactor)
-                
-                let circleView = ChartPointEllipseView(center: chartPointModel.screenLoc, diameter: diameter)
-                circleView.fillColor = chartPointModel.chartPoint.bgColor
-                circleView.borderColor = UIColor.black.withAlphaComponent(0.6)
-                circleView.borderWidth = 1
-                
-                circleView.animDelay = Float(chartPointModel.index) * 0.2
-                circleView.animDuration = 1.2
-                circleView.animDamping = 0.4
-                circleView.animInitSpringVelocity = 0.5
-            
-                return circleView
-            })
-            
-        } else {
-            return ChartPointsBubbleLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints)
-        }
-    }
-
-    class ColorBar: UIView {
-        
-        let dividers: [CGFloat]
-        
-        let gradientImg: UIImage
-        
-        lazy private(set) var imgData: UnsafePointer<UInt8> = {
-            let provider = self.gradientImg.cgImage!.dataProvider
-            let pixelData = provider!.data
-            return CFDataGetBytePtr(pixelData)
-        }()
-        
-        init(frame: CGRect, c1: UIColor, c2: UIColor) {
-            
-            let gradient: CAGradientLayer = CAGradientLayer()
-            gradient.frame = CGRect(x: 0, y: 0, width: frame.width, height: 30)
-            gradient.colors = [UIColor.blue.cgColor, UIColor.cyan.cgColor, UIColor.yellow.cgColor, UIColor.red.cgColor]
-            gradient.startPoint = CGPoint(x: 0, y: 0.5)
-            gradient.endPoint = CGPoint(x: 1.0, y: 0.5)
-
-
-            let imgHeight = 1
-            let imgWidth = Int(gradient.bounds.size.width)
-            
-            let bitmapBytesPerRow = imgWidth * 4
-            
-            let colorSpace = CGColorSpaceCreateDeviceRGB()
-            let bitmapInfo = CGBitmapInfo(rawValue: CGImageAlphaInfo.premultipliedLast.rawValue).rawValue
-
-            let context = CGContext (data: nil,
-                width: imgWidth,
-                height: imgHeight,
-                bitsPerComponent: 8,
-                bytesPerRow: bitmapBytesPerRow,
-                space: colorSpace,
-                bitmapInfo: bitmapInfo)
-            
-            UIGraphicsBeginImageContext(gradient.bounds.size)
-            gradient.render(in: context!)
-            
-            let gradientImg = UIImage(cgImage: context!.makeImage()!)
-            
-            UIGraphicsEndImageContext()
-            self.gradientImg = gradientImg
-            
-            let segmentSize = gradient.frame.size.width / 6
-            dividers = Array(stride(from: segmentSize, through: gradient.frame.size.width, by: segmentSize))
-
-            super.init(frame: frame)
-
-            layer.insertSublayer(gradient, at: 0)
-            
-            let numberFormatter = NumberFormatter()
-            numberFormatter.maximumFractionDigits = 2
-            
-            for x in stride(from: segmentSize, through: gradient.frame.size.width - 1, by: segmentSize) {
-                
-                let dividerW: CGFloat = 1
-                let divider = UIView(frame: CGRect(x: x - dividerW / 2, y: 25, width: dividerW, height: 5))
-                divider.backgroundColor = UIColor.black
-                addSubview(divider)
-                
-                let text = "\(numberFormatter.string(from: NSNumber(value: Float(x / gradient.frame.size.width)))!)"
-                let labelWidth = text.width(ExamplesDefaults.labelFont)
-                let label = UILabel()
-                label.center = CGPoint(x: x - labelWidth / 2, y: 30)
-                label.font = ExamplesDefaults.labelFont
-                label.text = text
-                label.sizeToFit()
-
-                addSubview(label)
-            }
-        }
-        
-        func colorForPercentage(_ percentage: Double) -> UIColor {
-
-            let data = imgData
-            
-            let xNotRounded = gradientImg.size.width * CGFloat(percentage)
-            let x = 4 * (floor(abs(xNotRounded / 4)))
-            let pixelIndex = Int(x * 4)
-            
-            let color = UIColor(
-                red: CGFloat(data[pixelIndex + 0]) / 255.0,
-                green: CGFloat(data[pixelIndex + 1]) / 255.0,
-                blue: CGFloat(data[pixelIndex + 2]) / 255.0,
-                alpha: CGFloat(data[pixelIndex + 3]) / 255.0
-            )
-            return color
-        }
-        
-        required init(coder aDecoder: NSCoder) {
-            fatalError("init(coder:) has not been implemented")
-        }
-    }
-}

+ 0 - 132
Dependecies/SwiftCharts/Examples/Examples/CandleStickExample.swift

@@ -1,132 +0,0 @@
-//
-//  CandleStickExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class CandleStickExample: UIViewController {
-
-    fileprivate var chart: Chart? // arc
-
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-
-        var readFormatter = DateFormatter()
-        readFormatter.dateFormat = "dd.MM.yyyy"
-        
-        var displayFormatter = DateFormatter()
-        displayFormatter.dateFormat = "MMM dd"
-        
-        let date = {(str: String) -> Date in
-            return readFormatter.date(from: str)!
-        }
-        
-        let calendar = Calendar.current
-        
-        let dateWithComponents = {(day: Int, month: Int, year: Int) -> Date in
-            var components = DateComponents()
-            components.day = day
-            components.month = month
-            components.year = year
-            return calendar.date(from: components)!
-        }
-        
-        func filler(_ date: Date) -> ChartAxisValueDate {
-            let filler = ChartAxisValueDate(date: date, formatter: displayFormatter)
-            filler.hidden = true
-            return filler
-        }
-        
-        let chartPoints = [
-            ChartPointCandleStick(date: date("01.10.2015"), formatter: displayFormatter, high: 40, low: 37, open: 39.5, close: 39),
-            ChartPointCandleStick(date: date("02.10.2015"), formatter: displayFormatter, high: 39.8, low: 38, open: 39.5, close: 38.4),
-            ChartPointCandleStick(date: date("03.10.2015"), formatter: displayFormatter, high: 43, low: 39, open: 41.5, close: 42.5),
-            ChartPointCandleStick(date: date("04.10.2015"), formatter: displayFormatter, high: 48, low: 42, open: 44.6, close: 44.5),
-            ChartPointCandleStick(date: date("05.10.2015"), formatter: displayFormatter, high: 45, low: 41.6, open: 43, close: 44),
-            ChartPointCandleStick(date: date("06.10.2015"), formatter: displayFormatter, high: 46, low: 42.6, open: 44, close: 46),
-            ChartPointCandleStick(date: date("07.10.2015"), formatter: displayFormatter, high: 47.5, low: 41, open: 42, close: 45.5),
-            ChartPointCandleStick(date: date("08.10.2015"), formatter: displayFormatter, high: 50, low: 46, open: 46, close: 49),
-            ChartPointCandleStick(date: date("09.10.2015"), formatter: displayFormatter, high: 45, low: 41, open: 44, close: 43.5),
-            ChartPointCandleStick(date: date("11.10.2015"), formatter: displayFormatter, high: 47, low: 35, open: 45, close: 39),
-            ChartPointCandleStick(date: date("12.10.2015"), formatter: displayFormatter, high: 45, low: 33, open: 44, close: 40),
-            ChartPointCandleStick(date: date("13.10.2015"), formatter: displayFormatter, high: 43, low: 36, open: 41, close: 38),
-            ChartPointCandleStick(date: date("14.10.2015"), formatter: displayFormatter, high: 42, low: 31, open: 38, close: 39),
-            ChartPointCandleStick(date: date("15.10.2015"), formatter: displayFormatter, high: 39, low: 34, open: 37, close: 36),
-            ChartPointCandleStick(date: date("16.10.2015"), formatter: displayFormatter, high: 35, low: 32, open: 34, close: 33.5),
-            ChartPointCandleStick(date: date("17.10.2015"), formatter: displayFormatter, high: 32, low: 29, open: 31.5, close: 31),
-            ChartPointCandleStick(date: date("18.10.2015"), formatter: displayFormatter, high: 31, low: 29.5, open: 29.5, close: 30),
-            ChartPointCandleStick(date: date("19.10.2015"), formatter: displayFormatter, high: 29, low: 25, open: 25.5, close: 25),
-            ChartPointCandleStick(date: date("20.10.2015"), formatter: displayFormatter, high: 28, low: 24, open: 26.7, close: 27.5),
-            ChartPointCandleStick(date: date("21.10.2015"), formatter: displayFormatter, high: 28.5, low: 25.3, open: 26, close: 27),
-            ChartPointCandleStick(date: date("22.10.2015"), formatter: displayFormatter, high: 30, low: 28, open: 28, close: 30),
-            ChartPointCandleStick(date: date("25.10.2015"), formatter: displayFormatter, high: 31, low: 29, open: 31, close: 31),
-            ChartPointCandleStick(date: date("26.10.2015"), formatter: displayFormatter, high: 31.5, low: 29.2, open: 29.6, close: 29.6),
-            ChartPointCandleStick(date: date("27.10.2015"), formatter: displayFormatter, high: 30, low: 27, open: 29, close: 28.5),
-            ChartPointCandleStick(date: date("28.10.2015"), formatter: displayFormatter, high: 32, low: 30, open: 31, close: 30.6),
-            ChartPointCandleStick(date: date("29.10.2015"), formatter: displayFormatter, high: 35, low: 31, open: 31, close: 33)
-        ]
-        
-        let yValues = stride(from: 20, through: 55, by: 5).map {ChartAxisValueDouble(Double($0), labelSettings: labelSettings)}
-
-        // Static x axis dates - alternative to using generators
-//        func generateDateAxisValues(month: Int, year: Int) -> [ChartAxisValueDate] {
-//            let date = dateWithComponents(1, month, year)
-//            let calendar = NSCalendar.currentCalendar()
-//            let monthDays = calendar.rangeOfUnit(.Day, inUnit: .Month, forDate: date)
-//            return Array(monthDays.toRange()!).map {day in
-//                let date = dateWithComponents(day, month, year)
-//                let axisValue = ChartAxisValueDate(date: date, formatter: displayFormatter, labelSettings: labelSettings)
-//                axisValue.hidden = !(day % 5 == 0)
-//                return axisValue
-//            }
-//        }
-//        let xValues = generateDateAxisValues(10, year: 2015)
-//        let xModel = ChartAxisModel(axisValues: xValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings))
-
-        
-        let xGeneratorDate = ChartAxisValuesGeneratorDate(unit: .day, preferredDividers:2, minSpace: 1, maxTextSize: 12)
-        let xLabelGeneratorDate = ChartAxisLabelsGeneratorDate(labelSettings: labelSettings, formatter: displayFormatter)
-        let firstDate = date("01.10.2015")
-        let lastDate = date("31.10.2015")
-        let xModel = ChartAxisModel(firstModelValue: firstDate.timeIntervalSince1970, lastModelValue: lastDate.timeIntervalSince1970, axisTitleLabels: [ChartAxisLabel(text: "Axis title", settings: labelSettings)], axisValuesGenerator: xGeneratorDate, labelsGenerator: xLabelGeneratorDate)
-        
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-        let chartFrame = ExamplesDefaults.chartFrame(view.bounds)
-        
-        let chartSettings = ExamplesDefaults.chartSettings // for now zoom & pan disabled, layer needs correct scaling mode.
-
-        let coordsSpace = ChartCoordsSpaceRightBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-        
-        let chartPointsLineLayer = ChartCandleStickLayer<ChartPointCandleStick>(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints, itemWidth: Env.iPad ? 10 : 5, strokeWidth: Env.iPad ? 1 : 0.6, increasingColor: UIColor.green, decreasingColor: UIColor.red)
-        
-        let settings = ChartGuideLinesLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: settings)
-        
-        let dividersSettings =  ChartDividersLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth, start: Env.iPad ? 7 : 3, end: 0)
-        let dividersLayer = ChartDividersLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: dividersSettings)
-        
-        let chart = Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                dividersLayer,
-                chartPointsLineLayer
-            ]
-        )
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-}

+ 0 - 322
Dependecies/SwiftCharts/Examples/Examples/CandleStickInteractiveExample.swift

@@ -1,322 +0,0 @@
-//
-//  CandleStickInteractiveExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class CandleStickInteractiveExample: UIViewController {
-    
-    fileprivate var chart: Chart? // arc
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-        
-        var readFormatter = DateFormatter()
-        readFormatter.dateFormat = "dd.MM.yyyy"
-        
-        var displayFormatter = DateFormatter()
-        displayFormatter.dateFormat = "MMM dd"
-        
-        let date = {(str: String) -> Date in
-            return readFormatter.date(from: str)!
-        }
-        
-        let calendar = Calendar.current
-        
-        let dateWithComponents = {(day: Int, month: Int, year: Int) -> Date in
-            var components = DateComponents()
-            components.day = day
-            components.month = month
-            components.year = year
-            return calendar.date(from: components)!
-        }
-        
-        func filler(_ date: Date) -> ChartAxisValueDate {
-            let filler = ChartAxisValueDate(date: date, formatter: displayFormatter)
-            filler.hidden = true
-            return filler
-        }
-        
-        let chartPoints = [
-            ChartPointCandleStick(date: date("01.10.2015"), formatter: displayFormatter, high: 40, low: 37, open: 39.5, close: 39),
-            ChartPointCandleStick(date: date("02.10.2015"), formatter: displayFormatter, high: 39.8, low: 38, open: 39.5, close: 38.4),
-            ChartPointCandleStick(date: date("03.10.2015"), formatter: displayFormatter, high: 43, low: 39, open: 41.5, close: 42.5),
-            ChartPointCandleStick(date: date("04.10.2015"), formatter: displayFormatter, high: 48, low: 42, open: 44.6, close: 44.5),
-            ChartPointCandleStick(date: date("05.10.2015"), formatter: displayFormatter, high: 45, low: 41.6, open: 43, close: 44),
-            ChartPointCandleStick(date: date("06.10.2015"), formatter: displayFormatter, high: 46, low: 42.6, open: 44, close: 46),
-            ChartPointCandleStick(date: date("07.10.2015"), formatter: displayFormatter, high: 47.5, low: 41, open: 42, close: 45.5),
-            ChartPointCandleStick(date: date("08.10.2015"), formatter: displayFormatter, high: 50, low: 46, open: 46, close: 49),
-            ChartPointCandleStick(date: date("09.10.2015"), formatter: displayFormatter, high: 45, low: 41, open: 44, close: 43.5),
-            ChartPointCandleStick(date: date("11.10.2015"), formatter: displayFormatter, high: 47, low: 35, open: 45, close: 39),
-            ChartPointCandleStick(date: date("12.10.2015"), formatter: displayFormatter, high: 45, low: 33, open: 44, close: 40),
-            ChartPointCandleStick(date: date("13.10.2015"), formatter: displayFormatter, high: 43, low: 36, open: 41, close: 38),
-            ChartPointCandleStick(date: date("14.10.2015"), formatter: displayFormatter, high: 42, low: 31, open: 38, close: 39),
-            ChartPointCandleStick(date: date("15.10.2015"), formatter: displayFormatter, high: 39, low: 34, open: 37, close: 36),
-            ChartPointCandleStick(date: date("16.10.2015"), formatter: displayFormatter, high: 35, low: 32, open: 34, close: 33.5),
-            ChartPointCandleStick(date: date("17.10.2015"), formatter: displayFormatter, high: 32, low: 29, open: 31.5, close: 31),
-            ChartPointCandleStick(date: date("18.10.2015"), formatter: displayFormatter, high: 31, low: 29.5, open: 29.5, close: 30),
-            ChartPointCandleStick(date: date("19.10.2015"), formatter: displayFormatter, high: 29, low: 25, open: 25.5, close: 25),
-            ChartPointCandleStick(date: date("20.10.2015"), formatter: displayFormatter, high: 28, low: 24, open: 26.7, close: 27.5),
-            ChartPointCandleStick(date: date("21.10.2015"), formatter: displayFormatter, high: 28.5, low: 25.3, open: 26, close: 27),
-            ChartPointCandleStick(date: date("22.10.2015"), formatter: displayFormatter, high: 30, low: 28, open: 28, close: 30),
-            ChartPointCandleStick(date: date("25.10.2015"), formatter: displayFormatter, high: 31, low: 29, open: 31, close: 31),
-            ChartPointCandleStick(date: date("26.10.2015"), formatter: displayFormatter, high: 31.5, low: 29.2, open: 29.6, close: 29.6),
-            ChartPointCandleStick(date: date("27.10.2015"), formatter: displayFormatter, high: 30, low: 27, open: 29, close: 28.5),
-            ChartPointCandleStick(date: date("28.10.2015"), formatter: displayFormatter, high: 32, low: 30, open: 31, close: 30.6),
-            ChartPointCandleStick(date: date("29.10.2015"), formatter: displayFormatter, high: 35, low: 31, open: 31, close: 33)
-        ]
-        
-        func generateDateAxisValues(_ month: Int, year: Int) -> [ChartAxisValueDate] {
-            let date = dateWithComponents(1, month, year)
-            let calendar = Calendar.current
-            let monthDays = calendar.range(of: .day, in: .month, for: date)!
-
-            return monthDays.map {day in
-                let date = dateWithComponents(day, month, year)
-                let axisValue = ChartAxisValueDate(date: date, formatter: displayFormatter, labelSettings: labelSettings)
-                axisValue.hidden = !(day % 5 == 0)
-                return axisValue
-            }
-        }
-        
-        let xValues = generateDateAxisValues(10, year: 2015)
-        let yValues = stride(from: 20, through: 55, by: 5).map {ChartAxisValueDouble(Double($0), labelSettings: labelSettings)}
-        
-        let xModel = ChartAxisModel(axisValues: xValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings))
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-        
-        let defaultChartFrame = ExamplesDefaults.chartFrame(view.bounds)
-        let infoViewHeight: CGFloat = 50
-        let chartFrame = CGRect(x: defaultChartFrame.origin.x, y: defaultChartFrame.origin.y + infoViewHeight, width: defaultChartFrame.width, height: defaultChartFrame.height - infoViewHeight)
-        
-        let chartSettings = ExamplesDefaults.chartSettings
-
-        let coordsSpace = ChartCoordsSpaceRightBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-        
-        let viewGenerator = {(chartPointModel: ChartPointLayerModel<ChartPointCandleStick>, layer: ChartPointsViewsLayer<ChartPointCandleStick, ChartCandleStickView>, chart: Chart) -> ChartCandleStickView? in
-            let (chartPoint, screenLoc) = (chartPointModel.chartPoint, chartPointModel.screenLoc)
-            
-            let x = screenLoc.x
-            
-            let highScreenY = screenLoc.y
-            let lowScreenY = layer.modelLocToScreenLoc(x: Double(x), y: Double(chartPoint.low)).y
-            let openScreenY = layer.modelLocToScreenLoc(x: Double(x), y: Double(chartPoint.open)).y
-            let closeScreenY = layer.modelLocToScreenLoc(x: Double(x), y: Double(chartPoint.close)).y
-            
-            let (rectTop, rectBottom, fillColor) = closeScreenY < openScreenY ? (closeScreenY, openScreenY, UIColor.white) : (openScreenY, closeScreenY, UIColor.black)
-            let v = ChartCandleStickView(lineX: screenLoc.x, width: Env.iPad ? 10 : 5, top: highScreenY, bottom: lowScreenY, innerRectTop: rectTop, innerRectBottom: rectBottom, fillColor: fillColor, strokeWidth: Env.iPad ? 1 : 0.5)
-            v.isUserInteractionEnabled = false
-            return v
-        }
-        let candleStickLayer = ChartPointsCandleStickViewsLayer<ChartPointCandleStick, ChartCandleStickView>(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, innerFrame: innerFrame, chartPoints: chartPoints, viewGenerator: viewGenerator)
-        
-        
-        let infoView = InfoWithIntroView(frame: CGRect(x: 10, y: 70, width: view.frame.size.width, height: infoViewHeight))
-        view.addSubview(infoView)
-        
-        let trackerLayer = ChartPointsTrackerLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints, locChangedFunc: {[weak candleStickLayer, weak infoView] screenLoc in
-            candleStickLayer?.highlightChartpointView(screenLoc: screenLoc)
-            if let chartPoint = candleStickLayer?.chartPointsForScreenLocX(screenLoc.x).first {
-                infoView?.showChartPoint(chartPoint)
-            } else {
-                infoView?.clear()
-            }
-        }, lineColor: UIColor.red, lineWidth: Env.iPad ? 1 : 0.6)
-        
-        
-        let settings = ChartGuideLinesLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: settings)
-        
-        let dividersSettings =  ChartDividersLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth, start: Env.iPad ? 7 : 3, end: 0)
-        let dividersLayer = ChartDividersLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: dividersSettings)
-        
-        let chart = Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                dividersLayer,
-                candleStickLayer,
-                trackerLayer
-            ]
-        )
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-    
-}
-
-
-private class InfoView: UIView {
-    
-    let statusView: UIView
-    
-    let dateLabel: UILabel
-    let lowTextLabel: UILabel
-    let highTextLabel: UILabel
-    let openTextLabel: UILabel
-    let closeTextLabel: UILabel
-    
-    let lowLabel: UILabel
-    let highLabel: UILabel
-    let openLabel: UILabel
-    let closeLabel: UILabel
-    
-    override init(frame: CGRect) {
-        
-        let itemHeight: CGFloat = 40
-        let y = (frame.height - itemHeight) / CGFloat(2)
-        
-        statusView = UIView(frame: CGRect(x: 0, y: y, width: itemHeight, height: itemHeight))
-        statusView.layer.borderColor = UIColor.black.cgColor
-        statusView.layer.borderWidth = 1
-        statusView.layer.cornerRadius = Env.iPad ? 13 : 8
-        
-        let font = ExamplesDefaults.labelFont
-        
-        dateLabel = UILabel()
-        dateLabel.font = font
-        
-        lowTextLabel = UILabel()
-        lowTextLabel.text = "Low:"
-        lowTextLabel.font = font
-        lowLabel = UILabel()
-        lowLabel.font = font
-        
-        highTextLabel = UILabel()
-        highTextLabel.text = "High:"
-        highTextLabel.font = font
-        highLabel = UILabel()
-        highLabel.font = font
-        
-        openTextLabel = UILabel()
-        openTextLabel.text = "Open:"
-        openTextLabel.font = font
-        openLabel = UILabel()
-        openLabel.font = font
-        
-        closeTextLabel = UILabel()
-        closeTextLabel.text = "Close:"
-        closeTextLabel.font = font
-        closeLabel = UILabel()
-        closeLabel.font = font
-        
-        super.init(frame: frame)
-        
-        addSubview(statusView)
-        addSubview(dateLabel)
-        addSubview(lowTextLabel)
-        addSubview(lowLabel)
-        addSubview(highTextLabel)
-        addSubview(highLabel)
-        addSubview(openTextLabel)
-        addSubview(openLabel)
-        addSubview(closeTextLabel)
-        addSubview(closeLabel)
-    }
-    
-    fileprivate override func didMoveToSuperview() {
-        
-        let views = [statusView, dateLabel, highTextLabel, highLabel, lowTextLabel, lowLabel, openTextLabel, openLabel, closeTextLabel, closeLabel]
-        for v in views {
-            v.translatesAutoresizingMaskIntoConstraints = false
-        }
-        
-        let namedViews = views.enumerated().map{index, view in
-            ("v\(index)", view)
-        }
-        
-        var viewsDict = Dictionary<String, UIView>()
-        for namedView in namedViews {
-            viewsDict[namedView.0] = namedView.1
-        }
-        
-        let circleDiameter: CGFloat = Env.iPad ? 26 : 15
-        let labelsSpace: CGFloat = Env.iPad ? 10 : 5
-        
-        let hConstraintStr = namedViews[1..<namedViews.count].reduce("H:|[v0(\(circleDiameter))]") {str, tuple in
-            "\(str)-(\(labelsSpace))-[\(tuple.0)]"
-        }
-        
-        let vConstraits = namedViews.flatMap {NSLayoutConstraint.constraints(withVisualFormat: "V:|-(18)-[\($0.0)(\(circleDiameter))]", options: NSLayoutConstraint.FormatOptions(), metrics: nil, views: viewsDict)}
-        
-        addConstraints(NSLayoutConstraint.constraints(withVisualFormat: hConstraintStr, options: NSLayoutConstraint.FormatOptions(), metrics: nil, views: viewsDict)
-            + vConstraits)
-        
-    }
-    
-    required init(coder aDecoder: NSCoder) {
-        fatalError("init(coder:) has not been implemented")
-    }
-    
-    func showChartPoint(_ chartPoint: ChartPointCandleStick) {
-        let color = chartPoint.open > chartPoint.close ? UIColor.black : UIColor.white
-        statusView.backgroundColor = color
-        dateLabel.text = chartPoint.x.labels.first?.text ?? ""
-        lowLabel.text = "\(chartPoint.low)"
-        highLabel.text = "\(chartPoint.high)"
-        openLabel.text = "\(chartPoint.open)"
-        closeLabel.text = "\(chartPoint.close)"
-    }
-    
-    func clear() {
-        statusView.backgroundColor = UIColor.clear
-    }
-}
-
-
-private class InfoWithIntroView: UIView {
-    
-    var introView: UIView!
-    var infoView: InfoView!
-    
-    override init(frame: CGRect) {
-        super.init(frame: frame)
-    }
-    
-    fileprivate override func didMoveToSuperview() {
-        let label = UILabel(frame: CGRect(x: 0, y: bounds.origin.y, width: bounds.width, height: bounds.height))
-        label.text = "Drag the line to see chartpoint data"
-        label.font = ExamplesDefaults.labelFont
-        label.backgroundColor = UIColor.white
-        introView = label
-        
-        infoView = InfoView(frame: bounds)
-        
-        addSubview(infoView)
-        addSubview(introView)
-    }
-    
-    required init(coder aDecoder: NSCoder) {
-        fatalError("init(coder:) has not been implemented")
-    }
-    
-    fileprivate func animateIntroAlpha(_ alpha: CGFloat) {
-        UIView.animate(withDuration: 0.1, animations: {
-            self.introView.alpha = alpha
-        })
-    }
-    
-    func showChartPoint(_ chartPoint: ChartPointCandleStick) {
-        animateIntroAlpha(0)
-        infoView.showChartPoint(chartPoint)
-    }
-    
-    func clear() {
-        animateIntroAlpha(1)
-        infoView.clear()
-    }
-}
-        

+ 0 - 46
Dependecies/SwiftCharts/Examples/Examples/Convenience/ConvenienceBarsExample.swift

@@ -1,46 +0,0 @@
-//
-//  ConvenienceBarsExample.swift
-//  Examples
-//
-//  Created by ischuetz on 19/07/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class ConvenienceBarsExample: UIViewController {
-    
-    fileprivate var chart: Chart? // arc
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let chartConfig = BarsChartConfig(
-            chartSettings: ExamplesDefaults.chartSettingsWithPanZoom,
-            valsAxisConfig: ChartAxisConfig(from: 0, to: 8, by: 2),
-            xAxisLabelSettings: ExamplesDefaults.labelSettings,
-            yAxisLabelSettings: ExamplesDefaults.labelSettings.defaultVertical()
-        )
-        
-        let chart = BarsChart(
-            frame: ExamplesDefaults.chartFrame(view.bounds),
-            chartConfig: chartConfig,
-            xTitle: "X axis",
-            yTitle: "Y axis",
-            bars: [
-                ("A", 2),
-                ("B", 4.5),
-                ("C", 3),
-                ("D", 5.4),
-                ("E", 6.8),
-                ("F", 0.5)
-            ],
-            color: UIColor.red,
-            barWidth: Env.iPad ? 40 : 20
-        )
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-}

+ 0 - 41
Dependecies/SwiftCharts/Examples/Examples/Convenience/ConvenienceLinesExample.swift

@@ -1,41 +0,0 @@
-//
-//  ConvenienceLinesExample.swift
-//  Examples
-//
-//  Created by ischuetz on 19/07/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class ConvenienceLinesExample: UIViewController {
-    
-    fileprivate var chart: Chart? // arc
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let chartConfig = ChartConfigXY(
-            chartSettings: ExamplesDefaults.chartSettingsWithPanZoom,
-            xAxisConfig: ChartAxisConfig(from: 2, to: 14, by: 2),
-            yAxisConfig: ChartAxisConfig(from: 0, to: 14, by: 2),
-            xAxisLabelSettings: ExamplesDefaults.labelSettings,
-            yAxisLabelSettings: ExamplesDefaults.labelSettings.defaultVertical()
-        )
-        
-        let chart = LineChart(
-            frame: ExamplesDefaults.chartFrame(view.bounds),
-            chartConfig: chartConfig,
-            xTitle: "X axis",
-            yTitle: "Y axis",
-            lines: [
-                (chartPoints: [(2.0, 10.6), (4.2, 5.1), (7.3, 3.0), (8.1, 5.5), (14.0, 8.0)], color: UIColor.red),
-                (chartPoints: [(2.0, 2.6), (4.2, 4.1), (7.3, 1.0), (8.1, 11.5), (14.0, 3.0)], color: UIColor.blue)
-            ]
-        )
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-}

+ 0 - 127
Dependecies/SwiftCharts/Examples/Examples/CoordsExample.swift

@@ -1,127 +0,0 @@
-//
-//  CoordsExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class CoordsExample: UIViewController {
-    
-    fileprivate var chart: Chart? // arc
-    
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-        
-        let chartPoints = [(2, 2), (3, 1), (5, 9), (6, 7), (8, 10), (9, 9), (10, 15), (13, 8), (15, 20), (16, 17)].map{ChartPoint(x: ChartAxisValueInt($0.0), y: ChartAxisValueInt($0.1))}
-        
-        let xValues = ChartAxisValuesStaticGenerator.generateXAxisValuesWithChartPoints(chartPoints, minSegmentCount: 7, maxSegmentCount: 7, multiple: 2, axisValueGenerator: {ChartAxisValueDouble($0, labelSettings: labelSettings)}, addPaddingSegmentIfEdge: false)
-        let yValues = ChartAxisValuesStaticGenerator.generateYAxisValuesWithChartPoints(chartPoints, minSegmentCount: 10, maxSegmentCount: 20, multiple: 2, axisValueGenerator: {ChartAxisValueDouble($0, labelSettings: labelSettings)}, addPaddingSegmentIfEdge: true)
-        
-        let xModel = ChartAxisModel(axisValues: xValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings))
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-        let chartFrame = ExamplesDefaults.chartFrame(view.bounds)
-        
-        var chartSettings = ExamplesDefaults.chartSettings // for now no zooming and panning here until ChartShowCoordsLinesLayer is improved to not scale the lines during zooming.
-        chartSettings.trailing = 20
-        chartSettings.labelsToAxisSpacingX = 15
-        chartSettings.labelsToAxisSpacingY = 15
-        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-    
-
-        let labelWidth: CGFloat = 70
-        let labelHeight: CGFloat = 30
-        
-        let showCoordsTextViewsGenerator = {(chartPointModel: ChartPointLayerModel, layer: ChartPointsLayer, chart: Chart) -> UIView? in
-            let (chartPoint, screenLoc) = (chartPointModel.chartPoint, chartPointModel.screenLoc)
-            let text = chartPoint.description
-            let font = ExamplesDefaults.labelFont
-            let x = min(screenLoc.x + 5, chart.bounds.width - text.width(font) - 5)
-            let view = UIView(frame: CGRect(x: x, y: screenLoc.y - labelHeight, width: labelWidth, height: labelHeight))
-            let label = UILabel(frame: view.bounds)
-            label.text = text
-            label.font = ExamplesDefaults.labelFont
-            view.addSubview(label)
-            view.alpha = 0
-
-            UIView.animate(withDuration: 0.2, delay: 0, options: .curveEaseOut, animations: {
-                view.alpha = 1
-            }, completion: nil)
-            
-            return view
-        }
-        
-        let showCoordsLinesLayer = ChartShowCoordsLinesLayer<ChartPoint>(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints)
-        
-        let showCoordsTextLayer = ChartPointsSingleViewLayer<ChartPoint, UIView>(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, innerFrame: innerFrame, chartPoints: chartPoints, viewGenerator: showCoordsTextViewsGenerator, mode: .custom, keepOnFront: true)
-        // To preserve the offset of the notification views from the chart point they represent, during transforms, we need to pass mode: .custom along with this custom transformer.
-        showCoordsTextLayer.customTransformer = {(model, view, layer) -> Void in
-            guard let chart = layer.chart else {return}
-            
-            let text = model.chartPoint.description
-
-            let screenLoc = layer.modelLocToScreenLoc(x: model.chartPoint.x.scalar, y: model.chartPoint.y.scalar)
-            let x = min(screenLoc.x + 5, chart.bounds.width - text.width(ExamplesDefaults.labelFont) - 5)
-            
-            view.frame.origin = CGPoint(x: x, y: screenLoc.y - labelHeight)
-        }
-        
-        let touchViewsGenerator = {(chartPointModel: ChartPointLayerModel, layer: ChartPointsLayer, chart: Chart) -> UIView? in
-            let (chartPoint, screenLoc) = (chartPointModel.chartPoint, chartPointModel.screenLoc)
-            let s: CGFloat = 30
-            let view = HandlingView(frame: CGRect(x: screenLoc.x - s/2, y: screenLoc.y - s/2, width: s, height: s))
-            view.touchHandler = {[weak showCoordsLinesLayer, weak showCoordsTextLayer, weak chartPoint, weak chart] in
-                guard let chartPoint = chartPoint, let chart = chart else {return}
-                showCoordsLinesLayer?.showChartPointLines(chartPoint, chart: chart)
-                showCoordsTextLayer?.showView(chartPoint: chartPoint, chart: chart)
-            }
-            return view
-        }
-        
-        let touchLayer = ChartPointsViewsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints, viewGenerator: touchViewsGenerator, mode: .translate, keepOnFront: true)
-        
-        let lineModel = ChartLineModel(chartPoints: chartPoints, lineColor: UIColor(red: 0.4, green: 0.4, blue: 1, alpha: 0.2), lineWidth: 3, animDuration: 0.7, animDelay: 0)
-        let chartPointsLineLayer = ChartPointsLineLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, lineModels: [lineModel])
-        
-        let circleViewGenerator = {(chartPointModel: ChartPointLayerModel, layer: ChartPointsLayer, chart: Chart) -> UIView? in
-            let circleView = ChartPointEllipseView(center: chartPointModel.screenLoc, diameter: 24)
-            circleView.animDuration = 1.5
-            circleView.fillColor = UIColor.white
-            circleView.borderWidth = 5
-            circleView.borderColor = UIColor.blue
-            return circleView
-        }
-        let chartPointsCircleLayer = ChartPointsViewsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: chartPoints, viewGenerator: circleViewGenerator, displayDelay: 0, delayBetweenItems: 0.05, mode: .translate)
-        
-        let settings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesDottedLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: settings)
-        
-        
-        let chart = Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                showCoordsLinesLayer,
-                chartPointsLineLayer,
-                chartPointsCircleLayer,
-                showCoordsTextLayer,
-                touchLayer,
-                
-            ]
-        )
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-    
-}

+ 0 - 56
Dependecies/SwiftCharts/Examples/Examples/CubicLinesExample.swift

@@ -1,56 +0,0 @@
-//
-//  CubicLinesExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class CubicLinesExample: UIViewController {
-    
-    fileprivate var chart: Chart? // arc
-
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-
-        let chartPoints = [(0, 0), (4, 4), (8, 11), (9, 2), (11, 10), (12, 3), (15, 18), (18, 10), (20, 15)].map{ChartPoint(x: ChartAxisValueInt($0.0, labelSettings: labelSettings), y: ChartAxisValueInt($0.1))}
-        
-        let xValues = chartPoints.map{$0.x}
-        let yValues = ChartAxisValuesStaticGenerator.generateYAxisValuesWithChartPoints(chartPoints, minSegmentCount: 10, maxSegmentCount: 20, multiple: 2, axisValueGenerator: {ChartAxisValueDouble($0, labelSettings: labelSettings)}, addPaddingSegmentIfEdge: false)
-        
-        let xModel = ChartAxisModel(axisValues: xValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings))
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-        let chartFrame = ExamplesDefaults.chartFrame(view.bounds)
-        
-        let chartSettings = ExamplesDefaults.chartSettingsWithPanZoom
-
-        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-        
-        let lineModel = ChartLineModel(chartPoints: chartPoints, lineColor: UIColor.purple, lineWidth: 2, animDuration: 1, animDelay: 0)
-        let chartPointsLineLayer = ChartPointsLineLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, lineModels: [lineModel], pathGenerator: CatmullPathGenerator()) // || CubicLinePathGenerator
-        
-        let settings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesDottedLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: settings)
-        
-        let chart = Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                chartPointsLineLayer
-            ]
-        )
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-}

+ 0 - 56
Dependecies/SwiftCharts/Examples/Examples/CubicLinesWithGradientExample.swift

@@ -1,56 +0,0 @@
-//
-//  CubicLinesExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class CubicLinesWithGradientExample: UIViewController {
-    
-    fileprivate var chart: Chart? // arc
-
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-
-        let chartPoints = [(0, 0), (4, 4), (8, 11), (9, 2), (11, 10), (12, 3), (15, 18), (18, 10), (20, 15)].map{ChartPoint(x: ChartAxisValueInt($0.0, labelSettings: labelSettings), y: ChartAxisValueInt($0.1))}
-        
-        let xValues = chartPoints.map{$0.x}
-        let yValues = ChartAxisValuesStaticGenerator.generateYAxisValuesWithChartPoints(chartPoints, minSegmentCount: 10, maxSegmentCount: 20, multiple: 2, axisValueGenerator: {ChartAxisValueDouble($0, labelSettings: labelSettings)}, addPaddingSegmentIfEdge: false)
-        
-        let xModel = ChartAxisModel(axisValues: xValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings))
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-        let chartFrame = ExamplesDefaults.chartFrame(view.bounds)
-        
-        let chartSettings = ExamplesDefaults.chartSettingsWithPanZoom
-
-        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-        
-        let lineModel = ChartLineModel(chartPoints: chartPoints, lineColors: [UIColor.yellow, UIColor.red], lineWidth: 2, animDuration: 1, animDelay: 0)
-        let chartPointsLineLayer = ChartPointsLineLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, lineModels: [lineModel], pathGenerator: CatmullPathGenerator()) // || CubicLinePathGenerator
-        
-        let settings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesDottedLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: settings)
-        
-        let chart = Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                chartPointsLineLayer
-            ]
-        )
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-}

+ 0 - 140
Dependecies/SwiftCharts/Examples/Examples/CustomUnitsExample.swift

@@ -1,140 +0,0 @@
-//
-//  CustomUnitsExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 05/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class CustomUnitsExample: UIViewController {
-
-    fileprivate var chart: Chart? // arc
-
-    override func viewDidLoad() {
-        super.viewDidLoad()
-
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-
-        var readFormatter = DateFormatter()
-        readFormatter.dateFormat = "dd.MM.yyyy"
-        
-        var displayFormatter = DateFormatter()
-        displayFormatter.dateFormat = "dd.MM.yyyy"
-        
-        let date = {(str: String) -> Date in
-            return readFormatter.date(from: str)!
-        }
-        
-        let calendar = Calendar.current
-        
-        let dateWithComponents = {(day: Int, month: Int, year: Int) -> Date in
-            var components = DateComponents()
-            components.day = day
-            components.month = month
-            components.year = year
-            return calendar.date(from: components)!
-        }
-        
-        func filler(_ date: Date) -> ChartAxisValueDate {
-            let filler = ChartAxisValueDate(date: date, formatter: displayFormatter)
-            filler.hidden = true
-            return filler
-        }
-        
-        let chartPoints = [
-            createChartPoint(dateStr: "01.10.2015", percent: 5, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "04.10.2015", percent: 10, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "05.10.2015", percent: 30, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "06.10.2015", percent: 70, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "08.10.2015", percent: 79, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "10.10.2015", percent: 90, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "12.10.2015", percent: 47, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "14.10.2015", percent: 60, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "15.10.2015", percent: 70, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "16.10.2015", percent: 80, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "19.10.2015", percent: 90, readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createChartPoint(dateStr: "21.10.2015", percent: 100, readFormatter: readFormatter, displayFormatter: displayFormatter)
-        ]
-        
-        let yValues = stride(from: 0, through: 100, by: 10).map {ChartAxisValuePercent($0, labelSettings: labelSettings)}
-
-        let xValues = [
-            createDateAxisValue("01.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("03.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("05.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("07.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("09.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("11.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("13.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("15.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("17.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("19.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter),
-            createDateAxisValue("21.10.2015", readFormatter: readFormatter, displayFormatter: displayFormatter)
-        ]
-        
-        let xModel = ChartAxisModel(axisValues: xValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings))
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-        let chartFrame = ExamplesDefaults.chartFrame(view.bounds)
-        var chartSettings = ExamplesDefaults.chartSettingsWithPanZoom
-        chartSettings.trailing = 80
-
-        // Set a fixed (horizontal) scrollable area 2x than the original width, with zooming disabled.
-        chartSettings.zoomPan.maxZoomX = 2
-        chartSettings.zoomPan.minZoomX = 2
-        chartSettings.zoomPan.minZoomY = 1
-        chartSettings.zoomPan.maxZoomY = 1
-        
-        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-        
-        let lineModel = ChartLineModel(chartPoints: chartPoints, lineColor: UIColor.red, lineWidth: 2, animDuration: 1, animDelay: 0)
-        
-        // delayInit parameter is needed by some layers for initial zoom level to work correctly. Setting it to true allows to trigger drawing of layer manually (in this case, after the chart is initialized). This obviously needs improvement. For now it's necessary.
-        let chartPointsLineLayer = ChartPointsLineLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, lineModels: [lineModel], delayInit: true)
-        
-        let guidelinesLayerSettings = ChartGuideLinesLayerSettings(linesColor: UIColor.black, linesWidth: 0.3)
-        let guidelinesLayer = ChartGuideLinesLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: guidelinesLayerSettings)
-        
-        let chart = Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                chartPointsLineLayer]
-        )
-        
-        view.addSubview(chart.view)
-        
-        
-        // Set scrollable area 2x than the original width, with zooming enabled. This can also be combined with e.g. minZoomX to allow only larger zooming levels.
-//        chart.zoom(scaleX: 2, scaleY: 1, centerX: 0, centerY: 0)
-        
-        // Now that the chart is zoomed (either with minZoom setting or programmatic zooming), trigger drawing of the line layer. Important: This requires delayInit paramter in line layer to be set to true.
-        chartPointsLineLayer.initScreenLines(chart)
-        
-        
-        self.chart = chart
-    }
-    
-    func createChartPoint(dateStr: String, percent: Double, readFormatter: DateFormatter, displayFormatter: DateFormatter) -> ChartPoint {
-        return ChartPoint(x: createDateAxisValue(dateStr, readFormatter: readFormatter, displayFormatter: displayFormatter), y: ChartAxisValuePercent(percent))
-    }
-    
-    func createDateAxisValue(_ dateStr: String, readFormatter: DateFormatter, displayFormatter: DateFormatter) -> ChartAxisValue {
-        let date = readFormatter.date(from: dateStr)!
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont, rotation: 45, rotationKeep: .top)
-        return ChartAxisValueDate(date: date, formatter: displayFormatter, labelSettings: labelSettings)
-    }
-    
-    class ChartAxisValuePercent: ChartAxisValueDouble {
-        override var description: String {
-            return "\(formatter.string(from: NSNumber(value: scalar))!)%"
-        }
-    }
-}

+ 0 - 16
Dependecies/SwiftCharts/Examples/Examples/Env.swift

@@ -1,16 +0,0 @@
-//
-//  Env.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 07/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-
-class Env {
-    
-    static var iPad: Bool {
-        return UIDevice.current.userInterfaceIdiom == .pad
-    }
-}

+ 0 - 60
Dependecies/SwiftCharts/Examples/Examples/EqualSpacingExample.swift

@@ -1,60 +0,0 @@
-//
-//  EqualSpacingExample.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class EqualSpacingExample: UIViewController {
-
-    fileprivate var chart: Chart? // arc
-
-    override func viewDidLoad() {
-        super.viewDidLoad()
-        
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-
-        let chartPoints = [
-            ChartPoint(x: ChartAxisValueDoubleScreenLoc(screenLocDouble: 1, actualDouble: 2, labelSettings: labelSettings), y: ChartAxisValueDouble(2)),
-            ChartPoint(x: ChartAxisValueDoubleScreenLoc(screenLocDouble: 2, actualDouble: 100, labelSettings: labelSettings), y: ChartAxisValueDouble(5)),
-            ChartPoint(x: ChartAxisValueDoubleScreenLoc(screenLocDouble: 3, actualDouble: 100.1, labelSettings: labelSettings), y: ChartAxisValueDouble(1)),
-            ChartPoint(x: ChartAxisValueDoubleScreenLoc(screenLocDouble: 4, actualDouble: 900000, labelSettings: labelSettings), y: ChartAxisValueDouble(10))
-        ]
-        
-        let xValues = chartPoints.map{$0.x}
-        let yValues = ChartAxisValuesStaticGenerator.generateYAxisValuesWithChartPoints(chartPoints, minSegmentCount: 10, maxSegmentCount: 20, multiple: 2, axisValueGenerator: {ChartAxisValueDouble($0, labelSettings: labelSettings)}, addPaddingSegmentIfEdge: false)
-        
-        let xModel = ChartAxisModel(axisValues: xValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings))
-        let yModel = ChartAxisModel(axisValues: yValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: labelSettings.defaultVertical()))
-        let chartFrame = ExamplesDefaults.chartFrame(view.bounds)
-        var chartSettings = ExamplesDefaults.chartSettingsWithPanZoom
-        chartSettings.trailing = 40
-        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-    
-        let lineModel = ChartLineModel(chartPoints: chartPoints, lineColor: UIColor.red, animDuration: 1, animDelay: 0)
-        let chartPointsLineLayer = ChartPointsLineLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, lineModels: [lineModel])
-        
-        let settings = ChartGuideLinesDottedLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesDottedLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, settings: settings)
-        
-        let chart = Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                chartPointsLineLayer
-            ]
-        )
-        
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-}

+ 0 - 103
Dependecies/SwiftCharts/Examples/Examples/ExamplesDefaults.swift

@@ -1,103 +0,0 @@
-//
-//  ExamplesDefaults.swift
-//  SwiftCharts
-//
-//  Created by ischuetz on 04/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-struct ExamplesDefaults {
-    
-    static var chartSettings: ChartSettings {
-        if Env.iPad {
-            return iPadChartSettings
-        } else {
-            return iPhoneChartSettings
-        }
-    }
-
-    static var chartSettingsWithPanZoom: ChartSettings {
-        if Env.iPad {
-            return iPadChartSettingsWithPanZoom
-        } else {
-            return iPhoneChartSettingsWithPanZoom
-        }
-    }
-    
-    fileprivate static var iPadChartSettings: ChartSettings {
-        var chartSettings = ChartSettings()
-        chartSettings.leading = 20
-        chartSettings.top = 20
-        chartSettings.trailing = 20
-        chartSettings.bottom = 20
-        chartSettings.labelsToAxisSpacingX = 10
-        chartSettings.labelsToAxisSpacingY = 10
-        chartSettings.axisTitleLabelsToLabelsSpacing = 5
-        chartSettings.axisStrokeWidth = 1
-        chartSettings.spacingBetweenAxesX = 15
-        chartSettings.spacingBetweenAxesY = 15
-        chartSettings.labelsSpacing = 0
-        return chartSettings
-    }
-    
-    fileprivate static var iPhoneChartSettings: ChartSettings {
-        var chartSettings = ChartSettings()
-        chartSettings.leading = 10
-        chartSettings.top = 10
-        chartSettings.trailing = 10
-        chartSettings.bottom = 10
-        chartSettings.labelsToAxisSpacingX = 5
-        chartSettings.labelsToAxisSpacingY = 5
-        chartSettings.axisTitleLabelsToLabelsSpacing = 4
-        chartSettings.axisStrokeWidth = 0.2
-        chartSettings.spacingBetweenAxesX = 8
-        chartSettings.spacingBetweenAxesY = 8
-        chartSettings.labelsSpacing = 0
-        return chartSettings
-    }
-
-    fileprivate static var iPadChartSettingsWithPanZoom: ChartSettings {
-        var chartSettings = iPadChartSettings
-        chartSettings.zoomPan.panEnabled = true
-        chartSettings.zoomPan.zoomEnabled = true
-        return chartSettings
-    }
-
-    fileprivate static var iPhoneChartSettingsWithPanZoom: ChartSettings {
-        var chartSettings = iPhoneChartSettings
-        chartSettings.zoomPan.panEnabled = true
-        chartSettings.zoomPan.zoomEnabled = true
-        return chartSettings
-    }
-    
-    static func chartFrame(_ containerBounds: CGRect) -> CGRect {
-        return CGRect(x: 0, y: 70, width: containerBounds.size.width, height: containerBounds.size.height - 70)
-    }
-    
-    static var labelSettings: ChartLabelSettings {
-        return ChartLabelSettings(font: ExamplesDefaults.labelFont)
-    }
-    
-    static var labelFont: UIFont {
-        return ExamplesDefaults.fontWithSize(Env.iPad ? 14 : 11)
-    }
-    
-    static var labelFontSmall: UIFont {
-        return ExamplesDefaults.fontWithSize(Env.iPad ? 12 : 10)
-    }
-    
-    static func fontWithSize(_ size: CGFloat) -> UIFont {
-        return UIFont(name: "Helvetica", size: size) ?? UIFont.systemFont(ofSize: size)
-    }
-    
-    static var guidelinesWidth: CGFloat {
-        return Env.iPad ? 0.5 : 0.1
-    }
-    
-    static var minBarSpacing: CGFloat {
-        return Env.iPad ? 10 : 5
-    }
-}

+ 0 - 227
Dependecies/SwiftCharts/Examples/Examples/GroupedAndStackedBarsExample.swift

@@ -1,227 +0,0 @@
-//
-//  GroupedAndStackedBarsExample.swift
-//  Examples
-//
-//  Created by ischuetz on 20/05/15.
-//  Copyright (c) 2015 ivanschuetz. All rights reserved.
-//
-
-import UIKit
-import SwiftCharts
-
-class GroupedAndStackedBarsExample: UIViewController {
-
-    fileprivate var chart: Chart?
-    
-    fileprivate let dirSelectorHeight: CGFloat = 50
-    
-    fileprivate func barsChart(horizontal: Bool) -> Chart {
-        let labelSettings = ChartLabelSettings(font: ExamplesDefaults.labelFont)
-        
-        let groupsData: [(title: String, bars: [(start: Double, quantities: [Double])])] = [
-            ("A", [
-                (0,
-                    [-20, -5, -10]
-                ),
-                (0,
-                    [10, 20, 30]
-                ),
-                (0,
-                    [30, 14, 5]
-                )
-            ]),
-            ("B", [
-                (0,
-                    [-10, -15, -5]
-                ),
-                (0,
-                    [30, 25, 40]
-                ),
-                (0,
-                    [25, 40, 10]
-                )
-            ]),
-            ("C", [
-                (0,
-                    [-15, -30, -10]
-                ),
-                (0,
-                    [-10, -10, -5]
-                ),
-                (0,
-                    [15, 30, 10]
-                )
-            ]),
-            ("D", [
-                (0,
-                    [-20, -10, -10]
-                ),
-                (0,
-                    [30, 15, 27]
-                ),
-                (0,
-                    [8, 10, 25]
-                )
-            ])
-        ]
-        
-        let frameColors = [UIColor.red.withAlphaComponent(0.6), UIColor.blue.withAlphaComponent(0.6), UIColor.green.withAlphaComponent(0.6)]
-        
-        let groups: [ChartPointsBarGroup<ChartStackedBarModel>] = groupsData.enumerated().map {index, entry in
-            let constant = ChartAxisValueDouble(Double(index))
-            let bars: [ChartStackedBarModel] = entry.bars.enumerated().map {index, bars in
-                let items = bars.quantities.enumerated().map {index, quantity in
-                    ChartStackedBarItemModel(quantity, frameColors[index])
-                }
-                return ChartStackedBarModel(constant: constant, start: ChartAxisValueDouble(bars.start), items: items)
-            }
-            return ChartPointsBarGroup(constant: constant, bars: bars)
-        }
-        
-        let letterAxisValues = [ChartAxisValueString(order: -1)] +
-            groupsData.enumerated().map {index, tuple in ChartAxisValueString(tuple.0, order: index, labelSettings: labelSettings)} +
-            [ChartAxisValueString(order: groupsData.count)]
-        
-        
-        let numberAxisValuesGenerator = ChartAxisGeneratorMultiplier(20)
-        let numberAxisLabelsGenerator = ChartAxisLabelsGeneratorFunc {scalar in
-            return ChartAxisLabel(text: "\(scalar)", settings: labelSettings)
-        }
-        
-        let m1 = ChartAxisModel(firstModelValue: -60, lastModelValue: 100, axisTitleLabels: [ChartAxisLabel(text: "Axis title", settings: horizontal ? labelSettings : labelSettings.defaultVertical())], axisValuesGenerator: numberAxisValuesGenerator, labelsGenerator: numberAxisLabelsGenerator)
-        
-        let m2 = ChartAxisModel(axisValues: letterAxisValues, axisTitleLabel: ChartAxisLabel(text: "Axis title", settings: horizontal ? labelSettings.defaultVertical() : labelSettings))
-        
-        let (xModel, yModel) = horizontal ? (m1, m2) : (m2, m1)
-        
-        
-        let frame = ExamplesDefaults.chartFrame(view.bounds)
-        let chartFrame = chart?.frame ?? CGRect(x: frame.origin.x, y: frame.origin.y, width: frame.size.width, height: frame.size.height - dirSelectorHeight)
-        
-        let chartSettings = ExamplesDefaults.chartSettingsWithPanZoom
-
-        let coordsSpace = ChartCoordsSpaceLeftBottomSingleAxis(chartSettings: chartSettings, chartFrame: chartFrame, xModel: xModel, yModel: yModel)
-        let (xAxisLayer, yAxisLayer, innerFrame) = (coordsSpace.xAxisLayer, coordsSpace.yAxisLayer, coordsSpace.chartInnerFrame)
-        
-        let groupsLayer = ChartGroupedStackedBarsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, groups: groups, horizontal: horizontal, barSpacing: 2, groupSpacing: 30, settings: ChartBarViewSettings(animDuration: 0.5))
-        
-        let settings = ChartGuideLinesLayerSettings(linesColor: UIColor.black, linesWidth: ExamplesDefaults.guidelinesWidth)
-        let guidelinesLayer = ChartGuideLinesLayer(xAxisLayer: xAxisLayer, yAxisLayer: yAxisLayer, axis: horizontal ? .x : .y, settings: settings)
-        
-        let dummyZeroChartPoint = ChartPoint(x: ChartAxisValueDouble(0), y: ChartAxisValueDouble(0))
-        let zeroGuidelineLayer = ChartPointsViewsLayer(xAxis: xAxisLayer.axis, yAxis: yAxisLayer.axis, chartPoints: [dummyZeroChartPoint], viewGenerator: {(chartPointModel, layer, chart) -> UIView? in
-            let width: CGFloat = 2
-            
-            let viewFrame: CGRect = {
-                if horizontal {
-                    return CGRect(x: chartPointModel.screenLoc.x - width / 2, y: 0, width: width, height: layer.modelLocToScreenLoc(y: -1))
-                } else {
-                    return CGRect(x: 0, y: chartPointModel.screenLoc.y - width / 2, width: layer.modelLocToScreenLoc(x: Double(groups.count)), height: width)
-                }
-            }()
-            
-            let v = UIView(frame: viewFrame)
-            v.backgroundColor = UIColor.black
-            return v
-        })
-        
-        return Chart(
-            frame: chartFrame,
-            innerFrame: innerFrame,
-            settings: chartSettings,
-            layers: [
-                xAxisLayer,
-                yAxisLayer,
-                guidelinesLayer,
-                groupsLayer,
-                zeroGuidelineLayer
-            ]
-        )
-    }
-    
-    
-    fileprivate func showChart(horizontal: Bool) {
-        self.chart?.clearView()
-        
-        let chart = barsChart(horizontal: horizontal)
-        view.addSubview(chart.view)
-        self.chart = chart
-    }
-    
-    override func viewDidLoad() {
-        showChart(horizontal: false)
-        if let chart = chart {
-            let dirSelector = DirSelector(frame: CGRect(x: 0, y: chart.frame.origin.y + chart.frame.size.height, width: view.frame.size.width, height: dirSelectorHeight), controller: self)
-            view.addSubview(dirSelector)
-        }
-    }
-    
-    class DirSelector: UIView {
-        
-        let horizontal: UIButton
-        let vertical: UIButton
-        
-        weak var controller: GroupedAndStackedBarsExample?
-        
-        fileprivate let buttonDirs: [UIButton : Bool]
-        
-        init(frame: CGRect, controller: GroupedAndStackedBarsExample) {
-            
-            self.controller = controller
-            
-            horizontal = UIButton()
-            horizontal.setTitle("Horizontal", for: UIControl.State())
-            vertical = UIButton()
-            vertical.setTitle("Vertical", for: UIControl.State())
-            
-            buttonDirs = [horizontal: true, vertical: false]
-            
-            super.init(frame: frame)
-            
-            addSubview(horizontal)
-            addSubview(vertical)
-            
-            for button in [horizontal, vertical] {
-                button.titleLabel?.font = ExamplesDefaults.fontWithSize(14)
-                button.setTitleColor(UIColor.blue, for: UIControl.State())
-                button.addTarget(self, action: #selector(DirSelector.buttonTapped(_:)), for: .touchUpInside)
-            }
-        }
-        
-        @objc func buttonTapped(_ sender: UIButton) {
-            let horizontal = sender == self.horizontal ? true : false
-            controller?.showChart(horizontal: horizontal)
-        }
-        
-        override func didMoveToSuperview() {
-            let views = [horizontal, vertical]
-            for v in views {
-                v.translatesAutoresizingMaskIntoConstraints = false
-            }
-            
-            let namedViews = views.enumerated().map{index, view in
-                ("v\(index)", view)
-            }
-            
-            var viewsDict = Dictionary<String, UIView>()
-            for namedView in namedViews {
-                viewsDict[namedView.0] = namedView.1
-            }
-            
-            let buttonsSpace: CGFloat = Env.iPad ? 20 : 10
-            
-            let hConstraintStr = namedViews.reduce("H:|") {str, tuple in
-                "\(str)-(\(buttonsSpace))-[\(tuple.0)]"
-            }
-            
-            let vConstraits = namedViews.flatMap {NSLayoutConstraint.constraints(withVisualFormat: "V:|[\($0.0)]", options: NSLayoutConstraint.FormatOptions(), metrics: nil, views: viewsDict)}
-            
-            addConstraints(NSLayoutConstraint.constraints(withVisualFormat: hConstraintStr, options: NSLayoutConstraint.FormatOptions(), metrics: nil, views: viewsDict)
-                + vConstraits)
-        }
-        
-        required init(coder aDecoder: NSCoder) {
-            fatalError("init(coder:) has not been implemented")
-        }
-    }
-}

+ 0 - 0
Dependecies/SwiftCharts/Examples/Examples/GroupedBarsExample.swift


Некоторые файлы не были показаны из-за большого количества измененных файлов