'Reference to generic type 'SomeResponse' requires arguments in <...>
I have getting the error "Reference to generic type 'SomeResponse' requires arguments in <...>"
struct SomeResponse<T: Decodable>: Decodable {
let success: Bool
let body: T?
}
final class SomeService {
var response: SomeResponse? ///Reference to generic type 'SomeResponse' requires arguments in <...>
}
I don't fully understand the syntax of what I should write into the property "response"
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
