hello. I can't figure out why I get this error, or how to fix it. Thanks.
two errors appear in JSONdecoder
Cannot convert value of type 'QuoteData?' to expected argument type 'T.Type'
Generic parameter 'T' could not be inferred
URLSession.shared.dataTask(with: url){ data, response, error in
guard let data = data else{ return }
if let decodeData = try? JSONDecoder().decode(QuoteData.self, from: data){
DispatchQueue.main.async{
self.QuoteData = decodeData
Selecting any option will automatically load the page