I'm trying to run this code but it's yielding unexpected results.
class Test: NSObject {
@objc var property: Int = 0
}
var t = Test()
t.perform(#selector(setter: Test.property), with: 100)
print(t.property)
The value being printed is some junk number -5764607523034233277
. How can I set the value of a property using the perform method?