A collection of user interface components and drawing routines for building tasteful apps using AppKit.
appkit swift aqua ui mac

Tweak AquaSegmentedControl dimensions

+7 -1
+7 -1
Sources/AquaKit/Controls and Views/AquaSegmentedControl.swift
··· 5 5 import AppKit 6 6 7 7 open class AquaSegmentedControl: NSSegmentedControl { 8 + var segmentWidth: CGFloat = 40 { 9 + didSet { 10 + invalidateIntrinsicContentSize() 11 + } 12 + } 13 + 8 14 override open var intrinsicContentSize: NSSize { 9 - return NSSize(width: 40 * segmentCount, height: 40) 15 + return NSSize(width: segmentWidth * CGFloat(segmentCount), height: 35) 10 16 } 11 17 12 18 override open var isFlipped: Bool { false }