Skip to content

Commit

Permalink
feat: adjusted switch view height
Browse files Browse the repository at this point in the history
  • Loading branch information
exelban committed Jun 28, 2024
1 parent c768c9b commit 24f3724
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Kit/extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 24f3724

Please sign in to comment.