📅  最后修改于: 2022-03-11 15:00:59.654000             🧑  作者: Mango
//Add these lines in your viewcontroller which you want to present
view.layer.cornerRadius = 15.0 // any radius value
view.layer.maskedCorners = [.layerMinXMinYCorner, .layerMaxXMinYCorner]