Is mapbox supporting WMS services? I found nothing in iOS documentation but in Android section I found this: https://docs.mapbox.com/android/maps/examples/add-a-wms-source/ . I've thired apply this code to iOS platform but my solution dosn't work. First problem that I met, was problem with construction of URL.
let url = URL(string: wms1)!
Url constructor got problem with {bbox-epsg-3857} in passed string.
I ommited problem by allowing illegal characters:
let urlString = wms1.addingPercentEncoding(withAllowedCharacters: .illegalCharacters)
let url = URL(string: urlString!)!
Then I tried add wms source to map but this provide some error
let source = MGLShapeSource(identifier: "test1", url: url, options: nil)
style.addSource(source)
let layer = MGLRasterStyleLayer(identifier: "test1", source: source)
style.addLayer(layer)
Error: [ERROR] {}[Style]: Failed to load source test1: