Something went wrong. Try again.
An auto tiler for macOS
Something went wrong. Try again.
12345678910111213141516171819202122232425262728293031323334353637383940414243444546public enum SnapAction: String, Sendable, Equatable, Codable, CaseIterable { case leftHalf = "left-half" case rightHalf = "right-half" case topHalf = "top-half" case bottomHalf = "bottom-half" case topLeft = "top-left" case topRight = "top-right" case bottomLeft = "bottom-left" case bottomRight = "bottom-right" case leftThird = "left-third" case centerThird = "center-third" case rightThird = "right-third" case leftTwoThirds = "left-two-thirds" case rightTwoThirds = "right-two-thirds" case center case almostMaximize = "almost-maximize" case maximize // Restore undoes geometry, not the decision to float a tiled window. case restore case nextDisplay = "next-display" case previousDisplay = "previous-display" case grow case shrink}
public struct SnapHistory: Sendable, Equatable, Codable { public var previousFrame: Rect public var previousWorkspace: WorkspaceKey? public var previousDisplayFrame: Rect? public var lastAction: SnapAction? public var lastFrame: Rect? public var cycle: Int
public init( previousFrame: Rect, previousWorkspace: WorkspaceKey? = nil, previousDisplayFrame: Rect? = nil, lastAction: SnapAction? = nil, lastFrame: Rect? = nil, cycle: Int = 0 ) { self.previousFrame = previousFrame self.previousWorkspace = previousWorkspace self.previousDisplayFrame = previousDisplayFrame self.lastAction = lastAction self.lastFrame = lastFrame self.cycle = cycle }}