Skip to content

Remove - while setting collapsed constraints for MessageViewController #211

@Narek1994

Description

@Narek1994

Sorry for not openning PR, I made a lot of changes, so dont want to push it here :)

private func makeCollapsedConstraints() -> [NSLayoutConstraint] {
    return [
      messageView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
      messageView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
      messageView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
      messageView.heightAnchor.constraint(
        equalToConstant: hideFooterView ? 0 : -BarcodeScannerViewController.footerHeight
      )
    ]
  }

Here I think -BarcodeScannerViewController.footerHeight should be BarcodeScannerViewController.footerHeight height can not be negative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions