You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last line is actually correct, if not minimal. If you could omit any of it, it would be the UILayoutPriority.RawValue initializer, which is being used to convert from another integer type. In this case, though, the integers are just literals and so it'd be fine to let them get an inferred type.
Attachment: Download
Environment
Xcode 9 release version. Migrating to minimise inference.
Additional Detail from JIRA
md5: 04fdc704cbc442bbb5b67683a60b912f
Issue Description:
The Swift 4 migrator is handling ternary operations that need to be wrapped in a constructor now (and didn't before) quite oddly.
`tableToViewTopConstraint?.priority = isShowingServerUpdating ? 1 : 999`
Should convert to:
`
tableToViewTopConstraint?.priority = UILayoutPriority.RawValue(isShowingServerUpdating ? 1 : 999)
`
But actually converted to:
`tableToViewTopConstraint?.priority = UILayoutPriority(rawValue: UILayoutPriority.RawValue(isShowingServerUpdating ? 1 : 999))`
The text was updated successfully, but these errors were encountered: