AnsweredAssumed Answered

Get all layers info in Swift

Question asked by tonyhhkx on Sep 27, 2016
Latest reply on Sep 27, 2016 by tonyhhkx

Dear All,


i tried to convert Object-c call in Swift using last stable SDK version:


AGSMapServiceInfo *serviceInfo = [AGSMapServiceInfo mapServiceInfoWithURL:serviceURL credential:nil error:&error];

 the Swift equivalent seem is the following:

var serviceInfo : AGSMapServiceInfo;

serviceInfo = AGSMapServiceInfo(URL: serviceURL, credential: nil);

If i gets the following parameter:


in Object-C works fine, but in Swift return NIL.


I tried a lot of example on internet but nothing works fine.


Could you please take a look?


Thanks and Regards.