3lvis / Form

The most flexible and powerful way to build a form on iOS

Home Page:http://hyper.no

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

UICollectionViewFlowLayout issue

aminiz opened this issue · comments

When I tap a textField in the form for the first time, it takes a very long time for it to activate. Basic-Swift project logs the following output:

2016-03-03 11:44:47.937 Basic-Swift[4217:2001502] Logging only once for UICollectionViewFlowLayout cache mismatched frame
2016-03-03 11:44:47.939 Basic-Swift[4217:2001502] UICollectionViewFlowLayout has cached frame mismatch for index path <NSIndexPath: 0xc000000000200016> {length = 2, path = 0 - 1} - cached value: {{313, 65}, {298, 85}}; expected value: {{313.5, 65}, {298, 85}}
2016-03-03 11:44:47.939 Basic-Swift[4217:2001502] This is likely occurring because the flow layout subclass FORMLayout is modifying attributes returned by UICollectionViewFlowLayout without copying them
2016-03-03 11:45:34.399 Basic-Swift[4217:2001502] <CATransformLayer: 0x13e83e7d0> - changing property masksToBounds in transform-only layer, will have no effect
2016-03-03 11:45:34.401 Basic-Swift[4217:2001502] <CATransformLayer: 0x13d6a8670> - changing property masksToBounds in transform-only layer, will have no effect
2016-03-03 11:45:34.402 Basic-Swift[4217:2001502] <CATransformLayer: 0x13d6a7f60> - changing property masksToBounds in transform-only layer, will have no effect

*This is only occurring on iOS9 devices.

Hi @aminiz,

I was able to verify this. It happens also in the Basic-ObjC demo. I'll check what's going on.

Hi @aminiz,

Looks like the delay only happens in debug mode. If you install the app, disconnect your iPad/iPhone, kill the app, then open it. Then you don't see the delay.

Somewhat related StackOverflow issue: http://stackoverflow.com/questions/9357026/super-slow-lag-delay-on-initial-keyboard-animation-of-uitextfield

Let me know if you have a different behavior.

Thanks 💟