InputBarAccessoryView icon indicating copy to clipboard operation
InputBarAccessoryView copied to clipboard

Doc/Implementation Inconsistent

Open mredig opened this issue 3 years ago • 1 comments

The inline docs for InputStackView state

A UIStackView that's intended for holding InputItems

Important Notes

  1. Default alignment is .fill
  2. Default distribution is .fill
  3. The distribution property needs to be based on its arranged subviews intrinsicContentSize so it is not recommended to change it

but the setup function sets the alignment to .bottom

    open func setup() {
        translatesAutoresizingMaskIntoConstraints = false
        distribution = .fill
        alignment = .bottom
    }

I'm uncertain as to which was intended.

mredig avatar Apr 24 '21 01:04 mredig

I think the doc is not up to date. Would you mind updating it in a PR?

The code itself lives there for some time and is probably... working as expected.

Kaspik avatar May 12 '21 22:05 Kaspik