╱🚧 under construction
SwiftUI ⟩ view ⟩ modifier ⟩ rendering modifier
Scale or mask a view, or apply graphical effects to a view.
Text("Clipped text in a circle") .frame(width: 175, height: 100) .foregroundColor(Color.white) .background(Color.black) .clipShape(Circle()) // ⭐️ rendering modifier
SwiftUI ⟩ View fundamentals ⟩ View ⟩ rendering modifiers
.clipShape(_:style:) : .cornerRadius() 已經廢止 (deprecated),用此 modifier 代替
.clipped(antialiased:):將 view 突出 frame 的部分裁掉
.mask(alignment:_:)
Sarun ⟩ What is the fixedSize modifier in SwiftUI
Last updated 2 months ago
Was this helpful?