protocol TestProtocol {
}
struct TestStruct: TestProtocol {
}
let arr = NSMutableArray()
let testStruct = TestStruct()
arr.add(testStruct)
print("\(arr[0] is TestProtocol)")
If I run this code in app on the simulator with IOS version >= 14.0 result is true, but on IOS 13 result is false.
Can someone tell me why there is difference of behavior?