CGSize

extension CGSize
extension CGSize: WrapperCompatible
  • Undocumented

    Declaration

    Swift

    public var isValid: Bool { get }
  • Undocumented

    Declaration

    Swift

    public var isNotEmpty: Bool { get }

Adaptive+Shortcut

  • 获取相对设计图宽度等比例缩放size

    Declaration

    Swift

    public var relativeValue: CGSize { get }
  • 获取相对设计图宽度等比例缩放时的固定size

    Declaration

    Swift

    public var fixedValue: CGSize { get }
  • 获取基于当前设备的倍数像素取整size

    Declaration

    Swift

    public var flatValue: CGSize { get }
  • 获取向上取整size

    Declaration

    Swift

    public var ceilValue: CGSize { get }