feat: adjusted switch view height

This commit is contained in:
Serhiy Mytrovtsiy
2024-06-28 10:14:16 +02:00
parent c768c9b472
commit 24f37249e5

View File

@@ -304,6 +304,7 @@ public extension NSView {
func switchView(action: Selector, state: Bool) -> NSSwitch {
let s = NSSwitch()
s.heightAnchor.constraint(equalToConstant: 25).isActive = true
s.controlSize = .mini
s.state = state ? .on : .off
s.action = action