nathantannar4 / InputBarAccessoryView

A simple and easily customizable InputAccessoryView for making powerful input bars with autocomplete and attachments
MIT License
1.17k stars 229 forks source link

Added extra animations option for left/right stack view constraints #224

Closed carlsondev closed 2 years ago

carlsondev commented 2 years ago

What does this implement/fix? Explain your changes.

When adjusting the left and right stack view width constraints, while I liked having them animated, I felt like there needed to be a way to run other animations concurrently.

One example would be changing the alpha component of the stack view items as they are compressed so they don't appear small in the end.

Because of this, I added a simple optional closure which, if specified, is called while animating to also animate the given properties.

Does this close any currently open issues?

Not that I am aware of.

Any relevant logs, error output, etc?

Any other comments?

The name of the closure variable and the comments can and maybe should be renamed if someone has a better idea.

Where has this been tested?

Devices/Simulators: … iPhone XR Device, iPhone 11, 11 Pro, 12, 12 Pro Simulators iOS Version: … 15.0 Swift Version: … 5.0 InputBarAccessoryView Version: … 5.4

carlsondev commented 2 years ago

Okay, requested changes have been done