Skip to content

Commit

Permalink
Merge pull request hyperoslo#73 from hyperoslo/constraint-fix
Browse files Browse the repository at this point in the history
CameraView: Fix invalid constraints on iOS < 11
  • Loading branch information
JohnSundell authored Nov 30, 2017
2 parents f528580 + 6485a27 commit eeac1b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Camera/CameraView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,8 @@ class CameraView: UIView, UIGestureRecognizerDelegate {
)
} else {
Constraint.on(
closeButton.topAnchor.constraint(equalTo: superview!.topAnchor),
rotateButton.topAnchor.constraint(equalTo: superview!.topAnchor)
closeButton.topAnchor.constraint(equalTo: topAnchor),
rotateButton.topAnchor.constraint(equalTo: topAnchor)
)
}

Expand Down

0 comments on commit eeac1b8

Please sign in to comment.