MGLSettings
@interface MGLSettings : NSObject
                The MGLSettings object provides a global way to set SDK properties such
as apiKey, backend URL, etc.
- 
                  
                  
Tile server options
Declaration
Objective-C
@property (class, copy, nullable) MGLTileServerOptions *tileServerOptions;Swift
@NSCopying class var tileServerOptions: MGLTileServerOptions? { get set } 
- 
                  
                  
The API Key used by all instances of
MGLMapViewin the current application. Setting this property to a value ofnilhas no effect.Note
You must set the API key before attempting to load any style which requires the token. Therefore, you should generally set it before creating an instance ofMGLMapView. The recommended way to set an api key is to add an entry to your application’s Info.plist file with the keyMGLApiKeyand the typeString. Alternatively, you may call this method from your application delegate’s-applicationDidFinishLaunching:method.Declaration
Objective-C
@property (class, copy, nullable) NSString *apiKey;Swift
class var apiKey: String? { get set } - 
                  
                  
Instructs the SDk to use the give tile server
Declaration
Objective-C
+ (void)useWellKnownTileServer:(MGLWellKnownTileServer)tileServer;Swift
class func use(_ tileServer: MGLWellKnownTileServer) 
              Install in Dash
            
        MGLSettings Class Reference