flowkey / UIKit-cross-platform

Cross-platform Swift implementation of UIKit, mostly for Android
MIT License
600 stars 40 forks source link

Add support for transform property #144

Closed ephemer closed 6 years ago

ephemer commented 6 years ago

We now have working transforms - nested and otherwise. I haven't tested this with rotations, but since we're not using them I didn't think this was necessary. That said, most of the hard work of this implementation is done by the GPU, so there's no good reason they shouldn't work too.

What appears to not be working yet is:

ephemer commented 6 years ago

@michaelknoch @rikner @cshg hitTest and absoluteOrigin are now both working as expected with transforms. https://github.com/flowkey/UIKit-SDL/pull/144/commits/31e0bd54bb8d0973a97bd1932514c4b084e0b082 is the relevant change for absoluteOrigin. Feel free to test and hopefully merge this, and then point #147 at master and merge it too if you think it's ready.

Nice to have improvements:

It's probably a good idea to merge rather than squash this PR, because there's quite a bit happening and the commits are somewhat reasonably split into logical units