How to animate MGLRasterTileSource

I'm using a 3rd party tiles API to show weather radar tiles. It has the format http://example.com/2019-02-22T06:20:00/{z}/{x}/{y}.png

let source = MGLRasterTileSource(identifier: "weather", tileURLTemplates: ["http://example.com/2019-02-22T06:20:00/{z}/{x}/{y}.png"], options: [ .tileSize: 256 ])
let rasterLayer = MGLRasterStyleLayer(identifier: "weather", source: source)
style.addSource(source)
style.addLayer(rasterLayer)

Now I have a series of dates that I would like to animate by changing the layer every x seconds.

let times = [
    "2019-02-27T16:35:00",
    "2019-02-27T16:40:00",
    "2019-02-27T16:45:00",
    "2019-02-27T16:50:00",
    "2019-02-27T16:55:00"
]

My current solution is to add one source with layers corresponding to each time and show only the layer of the current frame

func mapView(_ mapView: MGLMapView, didFinishLoading style: MGLStyle) {
    // Add a new raster source and layer.

    for time in times {
        let identifier = "frame_\(time)"
        source = MGLRasterTileSource(identifier: identifier, tileURLTemplates: ["http://example.com/\(time)/{z}/{x}/{y}.png"], options: [ .tileSize: 256 ])
        let rasterLayer = MGLRasterStyleLayer(identifier: identifier, source: source)
        style.addSource(source)
        style.addLayer(rasterLayer)

        // rasterLayer.isVisible = false
        // workaround
        rasterLayer.rasterOpacity = NSExpression(forConstantValue: 0.01)
    }
    timer = Timer.scheduledTimer(withTimeInterval: 0.5, repeats: true) { timer in
        self.loop()
    }
}

func loop() {
    // Get the currently display layer to be hidden
    let previousRasterLayer: MGLRasterStyleLayer = ...
    // Get the next layer to be shown
    let nextRasterLayer: MGLRasterStyleLayer = ...

    previousRasterLayer.isVisible = false
    nextRasterLayer.isVisible = true

    // workaround
    previousRasterLayer.rasterOpacity = NSExpression(forConstantValue: 0.01)
    nextRasterLayer.rasterOpacity = NSExpression(forConstantValue: 1)
}

While this kind if work, it does not seem to be optimal because the Mapbox SDK starts loading the layer pngs only when it is set visible. This causes the layers to be blurry while loading. A small workaround could be the set the opacity of the raster layer to 0.01 in which case Mapbox starts loading them all at once.

The question is whether there is a better way to achieve this.