101010.pl is one of the many independent Mastodon servers you can use to participate in the fediverse.
101010.pl czyli najstarszy polski serwer Mastodon. Posiadamy wpisy do 2048 znaków.

Server stats:

509
active users

#available

0 posts0 participants0 posts today
Continued thread

UIKit opt-out with subclass:

```
class BottomTabBarControllor: UITabBarController {

override func viewDidLoad() {
super.viewDidLoad()

if #available(iOS 17.0, *) {
traitOverrides.horizontalSizeClass = .unspecified
}
}
}
```

If I want to XCTSkip a test on watchOS, is there a way to do that? I've marked the test function `@available(watchOS, unavailable)`, but that isn't enough (I get why, but still...)

I can't figure out the `if #available` that will do it correctly. Is `#if os(watchOS)` really the only way? (It always feels very ugly doing stuff that way, but maybe it shouldn't.)

This test requires calling a method that is unavailable on watchOS.

Replied in thread

@mattiem Yeah, that looks basically like what I've done:

extension Color {
public static var Backport: Backport<Self>.Type { Backport<Self>.self }
}

extension Backport where Value == Color {
public static var groupedBackground: Color {
if #available(iOS 15, *) {
return Color(uiColor: UIColor.systemGroupedBackground)
} else {
return Color(UIColor.systemGroupedBackground) // deprecated
}
}
}