Swiftui Check Available Ios

[Solved] Swiftui Check Available Ios | Swift - Code Explorer | yomemimo.com
Question : swiftui check available ios

Answered by : tony-sacco

var body: some View {
    Group {
        if #available(iOS 15.0, *) {
            ScrollView {
                content
            }
        } else {
            List {
                content
            }
        }
    }
}

Source : https://developer.apple.com/forums/thread/650818 | Last Update : Fri, 29 Apr 22

Answers related to swiftui check available ios

Code Explorer Popular Question For Swift