manual croping image swift library code example
Example: swiftui crop image
// add negative padding to crop containing view-frame (for layout)
Image("pause")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(height: 50.0)
.padding(-5)
// add negative padding to crop containing view-frame (for layout)
Image("pause")
.resizable()
.aspectRatio(contentMode: .fit)
.frame(height: 50.0)
.padding(-5)