Cannot assign value of type 'V' to type some 'Protocol' – Ios swift
I have a protocol: import SwiftUI ... protocol MyProtocol : View { var aValue: CGFloat { get } } Then I have a property in a UIViewController: var contentView: some MyProtocol = MyView() Where MyView is: struct MyView : MyProtocol…