yeokm1 / SwiftSerial

A Swift Linux and Mac library for reading and writing to serial ports.
MIT License
138 stars 40 forks source link

swift build gives: is only available in macOS 10.15 or newer #22

Open richardklingler opened 2 years ago

richardklingler commented 2 years ago

When I follow the example from README.md the "swift build" command always gives loads of:

SerialPort/SerialPort/ContentView.swift:11:20: error: 'View' is only available in macOS 10.15 or newer
    var body: some View {
                   ^

Is the library not meant for any SwiftUI applications but only for command line apps?

yeokm1 commented 2 years ago

I've not tested it within Swift UI apps.

Having said that, I'm not sure if this problem is related to the SwiftSerial library. No instance of view is used in this library.