I face compilation error in Xcode 11.5 for iOS 13.5 even when declaring that my LibraryContentProvider shall be available for iOS 14 only.
Error
How to avoid this? I am asking because I'd like to ship my custom LibraryContentProvider as early as possible for people using Xcode 12 beta but I need to avoid compilation error for Xcode 11.5 users, of course :)
Error
CodeUse of undeclared type 'LibraryContentProvider'
Code Block swift @available(iOS 14.0, *) struct LibraryContent : LibraryContentProvider { @LibraryContentBuilder var views: [LibraryItem] { LibraryItem( Text("Hello WWDC!"), title: "Custom View In The Library" ) } }
How to avoid this? I am asking because I'd like to ship my custom LibraryContentProvider as early as possible for people using Xcode 12 beta but I need to avoid compilation error for Xcode 11.5 users, of course :)