CollectionViewPagingLayout icon indicating copy to clipboard operation
CollectionViewPagingLayout copied to clipboard

Compile time issue

Open moorejen opened this issue 3 years ago • 2 comments

Hello! Look at the timeline of compilation of these files: TransformPageView TransformPageViewProtocol TransformCurve

SPM Xcode 14.1 Macbook Pro 16 m1 pro macOS Monterrey

Screenshot 2022-11-24 at 02 51 10

How we can reduce compile time?

moorejen avatar Nov 23 '22 23:11 moorejen

I found some issues with optionals in TransformPageViewProtocol extension: image

Please, could you refactor initialisation of PagePadding to make it not so hard with optional types.

To activate build time analytics just add -Xfrontend -warn-long-expression-type-checking=30 to project build settings at Other Swift Flags setting.

moorejen avatar Nov 24 '22 00:11 moorejen

Hey Jerry, Thanks for looking into this, we can definitely improve it. Feel free to open a PR and improve the code. I'll try to take a look and improve it as well.

amirdew avatar Nov 28 '22 09:11 amirdew