Hello mohdarshad,
Thanks for your question. This question should likely be posted under the ArcGIS Runtime SDK for iOS Questions forum since it specifies use of AGSArcGISTiledLayer.
In regards to constructing a HeatMapRenderer, it can be constructed in the Swift SDK by creating a Web Map in the AGOL Map Viewer, where the renderer is accessible from the map's feature layer. Another option to construct a HeatMapRenderer is by using the "fromJSON(_:)" method with custom JSON which is covered in this api ref doc.
let renderer = try? HeatmapRenderer.fromJSON(
"""
{
"type": "heatmap",
"blurRadius": 10,
"colorStops": [
{ "ratio": 0, "color": [ 255, 255, 255, 0 ] },
{ "ratio": 0.1, "color": [ 255, 255, 0, 50 ] },
{ "ratio": 1, "color": [ 255, 0, 0, 200 ] }
],
"field": null,
"maxPixelIntensity": 100,
"minPixelIntensity": 0
}
"""
)
Please reach out with any further questions.