I posted an answer for the same issue in this thread: https://developer.apple.com/forums/thread/714721?answerId=732601022#732601022
The one that I found in my project is a kind of defining typealias inside a protocol
I changed from
public protocol Reusable {
typealias Cell = UITableViewCell & Reusable
typealias View = UITableViewHeaderFooterView & Reusable
static var reuseIdentifier: String { get }
}
to
public typealias ReusableCell = UITableViewCell & Reusable
public typealias ReusableView = UITableViewHeaderFooterView & Reusable
public protocol Reusable {
static var reuseIdentifier: String { get }
}
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: