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

UIView.layoutFittingCompressedSize was renamed to UILayoutFittingCompressedSize #9

Open
ohadk opened this issue Jan 6, 2020 · 0 comments

Comments

@ohadk
Copy link

ohadk commented Jan 6, 2020

[REQUIRED] Step 1: Describe your environment

  • Xcode version: 11.03
  • Toolbar version: 0.6.1

[REQUIRED] Step 3: Describe the problem

Compilation Error since the rename

Steps to reproduce:

Compile
What happened? How can we make the problem occur?
This could be a description, log/console output, screenshot etc.

Relevant Code:

public var minimumWidth: CGFloat {
    if let label: UILabel = self.titleLabel {
        let size: CGSize = label.systemLayoutSizeFitting(UILayoutFittingCompressedSize)
        return self.contentInset.left + size.width + self.contentInset.right
    }
    
    if let view: UIImageView = self.imageView {
        let size: CGSize = view.systemLayoutSizeFitting(UILayoutFittingCompressedSize)
        return self.contentInset.left + size.width + self.contentInset.right
    }
    
    if let _: UIView = self.customView {
        return self.contentInset.left + self.width + self.contentInset.right
    }
    
    return self.width
}
// TODO(you): code here to reproduce the problem
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

1 participant