Skip to content

How to use multiply #320

Open
Open

Description

@bimawa

I not found example with working multiply solution. On next my code:

  constrain(view, searchImage, coverLabel) { (view, searchImage, coverLabel) in
            searchImage.top == (view.height * CGFloat(0.59))
            searchImage.centerX == view.centerX
            searchImage.leading >= view.safeAreaLayoutGuide.leading + 12.0
            searchImage.trailing <= view.safeAreaLayoutGuide.trailing - 12.0
            coverLabel.top == searchImage.bottom + 32.0
        }

I got next compile error:

Build target AppTest
Compile Swift source files
Compile ViewController.swift
(178, 29) Binary operator '==' cannot be applied to operands of type 'Edge' and 'Expression<Dimension>'
(178, 29) Overloads for '==' exist with these partially matching parameter lists: (P, Expression<P>), (P, P)
Build failed with 1 error and 143 warnings in 43 s 83 ms

How work correctly with it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions