diff --git a/JDRealHeatMap.xcodeproj/project.xcworkspace/xcuserdata/JamesDouble.xcuserdatad/UserInterfaceState.xcuserstate b/JDRealHeatMap.xcodeproj/project.xcworkspace/xcuserdata/JamesDouble.xcuserdatad/UserInterfaceState.xcuserstate index 6b620a5..4511396 100644 Binary files a/JDRealHeatMap.xcodeproj/project.xcworkspace/xcuserdata/JamesDouble.xcuserdatad/UserInterfaceState.xcuserstate and b/JDRealHeatMap.xcodeproj/project.xcworkspace/xcuserdata/JamesDouble.xcuserdatad/UserInterfaceState.xcuserstate differ diff --git a/JDRealHeatMap/JDSwiftHeatMap.zip b/JDRealHeatMap/JDSwiftHeatMap.zip new file mode 100644 index 0000000..b87ca1e Binary files /dev/null and b/JDRealHeatMap/JDSwiftHeatMap.zip differ diff --git a/JDRealHeatMap/ViewController.swift b/JDRealHeatMap/ViewController.swift index cec1978..77c6f5e 100644 --- a/JDRealHeatMap/ViewController.swift +++ b/JDRealHeatMap/ViewController.swift @@ -46,7 +46,7 @@ class ViewController: UIViewController { func addRandomData() { - for i in 0..<20 + for _ in 0..<20 { let loti:Double = Double(119) + Double(Float(arc4random()) / Float(UINT32_MAX)) let lati:Double = Double(25 + arc4random_uniform(4)) + 2 * Double(Float(arc4random()) / Float(UINT32_MAX))