Skip to content
This repository has been archived by the owner on Jul 13, 2022. It is now read-only.

Commit

Permalink
LayoutGuides now have translatesAutoresizingMaskIntoConstraints set f…
Browse files Browse the repository at this point in the history
…alse be default
  • Loading branch information
kean committed Mar 16, 2016
1 parent d073534 commit 15db280
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 3 deletions.
1 change: 0 additions & 1 deletion Sources/AlignedLayoutArrangement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ class AlignedLayoutArrangement: LayoutArrangement {
override init(canvas: StackView) {
spacer = LayoutSpacer()
spacer.accessibilityIdentifier = "ASV-alignment-spanner"
spacer.translatesAutoresizingMaskIntoConstraints = false

super.init(canvas: canvas)
}
Expand Down
2 changes: 0 additions & 2 deletions Sources/DistributionLayoutArrangement.swift
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ class DistributionLayoutArrangement: LayoutArrangement {
override init(canvas: StackView) {
spacer = LayoutSpacer()
spacer.accessibilityIdentifier = "ASV-alignment-spanner"
spacer.translatesAutoresizingMaskIntoConstraints = false

super.init(canvas: canvas)
}
Expand Down Expand Up @@ -66,7 +65,6 @@ class DistributionLayoutArrangement: LayoutArrangement {
private func updateGapLayoutGuides() {
visibleItems.forPair { previous, current in
let gap = GapLayoutGuide()
gap.translatesAutoresizingMaskIntoConstraints = false
canvas.addSubview(gap)
gaps.append(gap)

Expand Down
1 change: 1 addition & 0 deletions Sources/Internal.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ class LayoutGuide: UIView {
super.init(frame: frame)
// Make sure that layout guides don't interfere with touches
self.hidden = true
self.translatesAutoresizingMaskIntoConstraints = false
}

required init?(coder aDecoder: NSCoder) {
Expand Down

0 comments on commit 15db280

Please sign in to comment.