Last updated 3 months ago
Was this helpful?
SwiftUI ⟩ control ⟩ Image
基本語法:
// Some code Image("name")
.resizable()
image.renderingMode()
SF Symbols
Image(playground:)
Image("Landscape_4") // image from asset or bundle // ⭐️ scale it to fit within its container .resizable() .aspectRatio(contentMode: .fit) // = .scaledToFit() .frame(width: 80.0, height: 80.0)
SwiftUI ⟩ Images ⟩ Image
SwiftOnTap ⟩ View ⟩
.resizable(capInsets:resizingMode:)
.scaledToFit()
Swift.Equatable
View