Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR SWIFT

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)
 
PREVIOUS NEXT
Tagged: #swiftui #crop #image
ADD COMMENT
Topic
Name
8+1 =