feat: remove additional spacing on Big Sur

This commit is contained in:
Serhiy Mytrovtsiy
2020-12-14 16:51:19 +01:00
parent 51bcfd8434
commit 8260f5d40c

View File

@@ -33,7 +33,15 @@ public struct Widget_c_s {
return (systemHeight == 0 ? 22 : systemHeight) ?? 22
}
}
public let margin: CGPoint = CGPoint(x: 2, y: 2)
public var margin: CGPoint {
get {
var point: CGPoint = CGPoint(x: 2, y: 2)
if #available(macOS 11.0, *) {
point.x = 0
}
return point
}
}
public let spacing: CGFloat = 2
}