Skip to content

Commit

Permalink
Merge pull request #3 from martindufort/add-new-compatibility
Browse files Browse the repository at this point in the history
Add new compatibility variable to UXLabel
  • Loading branch information
helje5 authored Dec 23, 2023
2 parents ace0adf + 60f46b2 commit fd20b30
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 8 deletions.
20 changes: 12 additions & 8 deletions Package.swift
Original file line number Diff line number Diff line change
@@ -1,13 +1,17 @@
// swift-tools-version:5.1

import PackageDescription

let package = Package(
name: "UXKit",

exclude: [
"UXKit.xcodeproj",
"GNUmakefile",
"LICENSE",
"README.md",
"xcconfig"
]
platforms: [
.macOS(.v10_12), .iOS(.v10)
],
products: [
.library(name: "UXKit", targets: ["UXKit"]),
],
dependencies: [],
targets: [
.target(name:"UXKit")
]
)
7 changes: 7 additions & 0 deletions Sources/UXKit/AppKit/UXView-AppKit.swift
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,13 @@

}

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

public extension UXSpinner {
/// Use this instead of `isDisplayedWhenStopped` for UIKit compatibility.
var hidesWhenStopped : Bool {
Expand Down

0 comments on commit fd20b30

Please sign in to comment.