an iOS swift Radar UI View component
Development Target: iOS 10
RadarView can be added to your project using CocoaPods 0.36 or later by adding the following line to your Podfile:
pod 'RadarView_iOS'
To add RadarView to a Swift Package Manager based project, add:
.package(url: "https://github.com/xattacker/RadarView_iOS_API.git", .upToNextMajor(from: "1.0.2")),
to your Package.swift
files dependencies
array.
import RadarView_iOS
var radarView: UIRadarView!
var points = [CLLocationCoordinate2D]()
points.append(CLLocationCoordinate2D(latitude: 22.662705, longitude: 120.250990))
points.append(CLLocationCoordinate2D(latitude: 22.635442, longitude: 120.355306))
points.append(CLLocationCoordinate2D(latitude: 22.705310, longitude: 120.353300))
radarView.setPoints(points, autoRadius: true)