Juanpe / SkeletonView

☠️ An elegant way to show users that something is happening and also prepare them to which contents they are awaiting
MIT License
12.51k stars 1.1k forks source link

Align last line of skeleton view according to text alignment #431

Closed literallysofia closed 2 years ago

literallysofia commented 2 years ago

Summary

As mentioned in issue 428, it would be nice to have the possibility to align the last line of multiline skeleton views (when not filling 100%) according to their text alignment property. This pull request proposes a solution where given the property textAlignment, the rectangle that represents the last line of a multiline layer is positioned accordingly. Only .center and .right alignments are taken into account, the fallback will always be to align left.

Requirements (place an x in each of the [ ])

Juanpe commented 2 years ago

🚀 Thanks for contributing! 🤙

Juanpe commented 2 years ago

Congratulations! 🎉 This was released as part of SkeletonView 1.22.0 🚀