VStack{
Image(systemName: "drop")
.resizable()
.font(.largeTitle.weight(.ultraLight))
.scaledToFit()
}
Screenshot shows a small gap on the right side:
After using additional padding, the image still looks off. That gap becomes less but it's still noticable.
My expectation was that applying .scaledToFit would actually scale the image to fit the screen, and then I could use the padding.
Though even with padding the issue persists:
I tried to use .aspectRatio(contentMode: .fit), and also different aspect ratios hoping that it could fix it.
Also the same issue persists even using the "square" SF Symbol (that likely excludes aspect ratio issue cuz square is 1:1) Though I fixed issue with square using .imageScale(.large)
Square without .imageScale(.large):
Square with .imageScale(.large):
0 comments:
Post a Comment
Thanks