Skip to content

Commit daaef5e

Browse files
committed
Updates for Swift 2.0 in Xcode 7.0 beta 4
1 parent c1694c6 commit daaef5e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

TableViewCellWithAutoLayout/TableViewController/TableViewCell.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ class TableViewCell: UITableViewCell
2626
setupViews()
2727
}
2828

29-
required init(coder aDecoder: NSCoder)
29+
required init?(coder aDecoder: NSCoder)
3030
{
3131
super.init(coder: aDecoder)
3232

@@ -64,9 +64,7 @@ class TableViewCell: UITableViewCell
6464
// contentView.bounds = CGRect(x: 0.0, y: 0.0, width: 99999.0, height: 99999.0)
6565

6666
// Prevent the two UILabels from being compressed below their intrinsic content height
67-
// FIXME 7-Jun-14 Xcode 6b1: Apple Bug Report rdar://17220525: The UILayoutPriority enum is not compatible with Swift yet!
68-
// As a temporary workaround, we're using the raw value of UILayoutPriorityRequired = 1000
69-
UIView.autoSetPriority(1000) {
67+
UIView.autoSetPriority(UILayoutPriorityRequired) {
7068
self.titleLabel.autoSetContentCompressionResistancePriorityForAxis(.Vertical)
7169
self.bodyLabel.autoSetContentCompressionResistancePriorityForAxis(.Vertical)
7270
}

0 commit comments

Comments
 (0)