Camera focused using map extent (4 co ordinates min – max X and min – max Y).
My Code:
self.map.maxExtent = Envelope(xMin: self.xMin!, yMin: self.yMin!, xMax: self.xMax!, yMax: self.yMax!, spatialReference: .wgs84)
self.map.initialViewpoint = Viewpoint(boundingGeometry: self.map.maxExtent!.center, camera: Camera(lookingAt: self.map.maxExtent!.center, distance: 5500, heading: 150, pitch: 20, roll: 0))
But its not working. That means Camera is not focusing on view map.