view.clipShape()
╱🚧 under construction
Last updated
Was this helpful?
╱🚧 under construction
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ .clipShape()
裁掉 在指定 外面的部分。
⭐️ 注意:.clipShape()
不會改變
mismatching types
AnyShape:裡面有 MyAnyShape
(custom type erasure) 的
has non-Sendable type:裡面有 MyShape
(custom enum) 的
⟩ ⟩ ⟩
: 已經廢止 (deprecated),用此 clipShape 代替
:將 view 突出 frame 的部分裁掉
用 enum 封裝不同型別:使用 .clipShape()
時可考慮此方法
has non-Sendable type:裡面有 MyShape
(custom enum) 的