SwiftUI Image View: ScaledToFill

scaledToFill() modifier is used to make image fill the view while maintaining the aspect ratio.
struct ImageExample: View {
    
    var body: some View {
        Image("dt")
            .resizable()
            .scaledToFill()
    }
}