2.6 ExpressibleByFloatLiteral 实现

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

2.6 ExpressibleByFloatLiteral 实现

初始化器

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