Skip to content

Commit 86bbe3c

Browse files
author
JWI
committed
testing stuff
1 parent 43a283d commit 86bbe3c

File tree

2 files changed

+10
-3
lines changed

2 files changed

+10
-3
lines changed

Sources/UIKitBackend/UIKitBackend+Control.swift

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,14 +244,17 @@ extension UIKitBackend {
244244
// ignore foreground color for buttons on tvOS until we have a better
245245
// solution.
246246
let foregroundColor: UIColor
247-
if #available(iOS 13, *) {
247+
foregroundColor = .blue
248+
249+
//MARK: Test fix
250+
/*if #available(iOS 13, *) {
248251
foregroundColor = .link
249252
} else if #available(iOS 7, *) {
250253
// fallback color for older iOS versions
251254
foregroundColor = UIColor.systemBlue
252255
} else {
253256
foregroundColor = UIColor.blue
254-
}
257+
}*/
255258

256259
#if os(tvOS)
257260
buttonWidget.child.setTitle(label, for: .normal)

Sources/UIKitBackend/UIKitBackend+Window.swift

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ final class RootViewController: UIViewController {
3737

3838
override func loadView() {
3939
super.loadView()
40-
if #available(iOS 12, *) {
40+
if #available(iOS 13, *) {
4141
if traitCollection.userInterfaceStyle != .dark {
4242
view.backgroundColor = .white
4343
}
@@ -158,6 +158,10 @@ extension UIKitBackend {
158158
if #available(iOS 13, *) {
159159
window.windowScene?.sizeRestrictions?.minimumSize = CGSize(
160160
width: CGFloat(minimumSize.x), height: CGFloat(minimumSize.y))
161+
} else {
162+
// iOS 12: windowScene/sizeRestrictions not available
163+
// Optional: enforce min size in your layout logic
164+
print("UIKitBackend: setMinimumSize ignored on iOS < 13")
161165
}
162166
}
163167
}

0 commit comments

Comments
 (0)