📅  最后修改于: 2022-03-11 15:01:02.258000             🧑  作者: Mango
代码示例2
let view = UIView()
view.layer.cornerRadius = 10
@available(iOS 11.0, *)
view.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]