2.7 ExpressibleByIntegerLiteral 实现

原文链接: https://developer.apple.com/documentation/swiftui/edge/corner/style/expressiblebyintegerliteral-implementations

2.7 ExpressibleByIntegerLiteral 实现

初始化器

  • init(integerLiteral:) — 以整数值作为圆角半径创建固定的圆角样式。这是书写 .fixed(value) 的简写。