Closed th0114nd closed 10 years ago
Fantastic thank you for fixing! This error doesn't show up in the Xcode 6 beta 3, which was what I built this project in, but I had this reported and was about to look into it, thanks for saving me some time
No problem. One weird thing is that I think declaring the type as UIScrollView! (implicitly unwrapped optional) should do that same thing but not require the casts, but instead an abort signal is thrown somewhere. I fixed it by reading the Optional Types section in the Language Reference: https://developer.apple.com/library/prerelease/ios/documentation/Swift/Conceptual/Swift_Programming_Language/Types.html#//apple_ref/doc/uid/TP40014097-CH31-XID_1071
...tialized, and I believe the answer is to make the type optional.
Then one solution is to add casts at each callpoint, but I'm not sure it's the best way.