Skip to content

Commit

Permalink
Improve code consistency
Browse files Browse the repository at this point in the history
...
  • Loading branch information
helje5 committed Dec 23, 2023
1 parent e99ad62 commit 77afa40
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Sources/UXKit/AppKit/UXView-AppKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,22 +115,22 @@

}

public extension UXLabel {
var text: String {
set { stringValue = newValue }
get { return stringValue }
}
public extension NSTextField {
var text: String {
set { stringValue = newValue }
get { return stringValue }
}
}

public extension UXSpinner {
public extension NSProgressIndicator {
/// Use this instead of `isDisplayedWhenStopped` for UIKit compatibility.
var hidesWhenStopped : Bool {
set { isDisplayedWhenStopped = !newValue }
get { return !isDisplayedWhenStopped }
}
}

public extension UXView {
public extension NSView {

func inOwnContext(execute: () -> ()) {
NSGraphicsContext.saveGraphicsState()
Expand Down

0 comments on commit 77afa40

Please sign in to comment.