ekazaev / ChatLayout

ChatLayout is an alternative solution to MessageKit. It uses custom UICollectionViewLayout to provide you full control over the presentation as well as all the tools available in UICollectionView. It supports dynamic cells and supplementary view sizes.
MIT License
896 stars 67 forks source link

Implicit use of 'self' in closure #49

Closed astrokin closed 1 year ago

astrokin commented 1 year ago

fix SwappingContainerView.swift:296:17 Implicit use of 'self' in closure; use 'self.' to make capture semantics explicit

ekazaev commented 1 year ago

@astrokin Thank you for the PR. I appreciate the effort but this correction is not needed in swift 5.8. I have recently moved the library to support the new syntax.

Screenshot 2023-05-31 at 12 04 45 Screenshot 2023-05-31 at 12 09 24

Swift format will remove your correction next time I run it as it is setup to target swift 5.8. Can you please update your compiler (XCode version 14.3) or use the previous version of the library instead?

Otherwise I can only suggest you to fork the library and keep the corrections you need until you are able to update your compiler.