Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use multiply #320

Open
bimawa opened this issue Sep 11, 2020 · 0 comments
Open

How to use multiply #320

bimawa opened this issue Sep 11, 2020 · 0 comments

Comments

@bimawa
Copy link

bimawa commented Sep 11, 2020

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@bimawa and others