File tree Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Expand file tree Collapse file tree 2 files changed +10
-3
lines changed Original file line number Diff line number Diff 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)
Original file line number Diff line number Diff 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}
You can’t perform that action at this time.
0 commit comments