codeandtheory / YCoreUI

Core components for iOS and tvOS to accelerate building user interfaces in code.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

`constrainCenter` return value should be discardable

mpospese opened this issue · comments

Intro

All of our constrain methods return either constraints or dictionaries of constraints but these are always discardable (they do not need to be retained because the constraint's parent view retains them).

constrainCenter was supposed to be marked @discardableResult (it was part of the acceptance criteria for the ticket), but it got overlooked.

Task

mark constrainCenter function return as @discardableResult