Blog
All Courses
Books
Kids Game Programming
Categories
Login
Blog
All Courses
Books
Kids Game Programming
Categories
Login
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() } }