Rectangle

extension Rectangle

使用Rectangle实现分割线更灵活可控

  • 自定义线条样式,参数nil时为Divider默认配置

    Declaration

    Swift

    public func dividerStyle(size: CGFloat? = nil, color: Color? = nil) -> some View