So far, it seems to be working... The key was to add ArcGIS.h to the "Objective-C Bridging Header" setting under Swift Compiler - Code Generation of Build Settings.
import ArcGIS
import UIKit import ArcGIS var tileUrl = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" class ViewController: UIViewController { @IBOutlet var mapView : AGSMapView override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. var myLayer = AGSTiledMapServiceLayer(URL: NSURL(string: tileUrl)) mapView.addMapLayer(myLayer) } }
So far, it seems to be working... The key was to add ArcGIS.h to the "Objective-C Bridging Header" setting under Swift Compiler - Code Generation of Build Settings.
import ArcGIS
import UIKit import ArcGIS var tileUrl = "http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer" class ViewController: UIViewController { @IBOutlet var mapView : AGSMapView override func viewDidLoad() { super.viewDidLoad() // Do any additional setup after loading the view, typically from a nib. var myLayer = AGSTiledMapServiceLayer(URL: NSURL(string: tileUrl)) mapView.addMapLayer(myLayer) } }