📜  swiftui 宽度屏幕 - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:44.649000             🧑  作者: Mango

代码示例1
extension UIScreen{
   static let screenWidth = UIScreen.main.bounds.size.width
   static let screenHeight = UIScreen.main.bounds.size.height
   static let screenSize = UIScreen.main.bounds.size
}