Skip to content

Commit ed1373b

Browse files
Tyler FoxTyler Fox
authored andcommitted
Minor formatting changes
1 parent 9a70468 commit ed1373b

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
@@ -49,17 +49,15 @@ class TableViewCell: UITableViewCell
4949
{
5050
super.updateConstraints()
5151

52-
if didSetupConstraints {
53-
return
54-
}
52+
if didSetupConstraints { return }
5553

5654
// Note: if the constraints you add below require a larger cell size than the current size (which is likely to be the default size {320, 44}), you'll get an exception.
5755
// As a fix, you can temporarily increase the size of the cell's contentView so that this does not occur using code similar to the line below.
5856
// See here for further discussion: https://github.com/Alex311/TableCellWithAutoLayout/commit/bde387b27e33605eeac3465475d2f2ff9775f163#commitcomment-4633188
5957
// contentView.bounds = CGRect(x: 0.0, y: 0.0, width: 99999.0, height: 99999.0)
6058

6159
// Prevent the two UILabels from being compressed below their intrinsic content height
62-
// FIXME 7-Jun-14 Xcode 6b1: Apple Bug Report Radar #17220525: The UILayoutPriority enum is not compatible with Swift yet!
60+
// FIXME 7-Jun-14 Xcode 6b1: Apple Bug Report rdar://17220525: The UILayoutPriority enum is not compatible with Swift yet!
6361
// As a temporary workaround, we're using the raw value of UILayoutPriorityRequired = 1000
6462
UIView.autoSetPriority(1000) {
6563
self.titleLabel.autoSetContentCompressionResistancePriorityForAxis(.Vertical)

0 commit comments

Comments
 (0)