Skip to content

Commit eeac1b8

Browse files
authored
Merge pull request #73 from hyperoslo/constraint-fix
CameraView: Fix invalid constraints on iOS < 11
2 parents f528580 + 6485a27 commit eeac1b8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Sources/Camera/CameraView.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ class CameraView: UIView, UIGestureRecognizerDelegate {
8181
)
8282
} else {
8383
Constraint.on(
84-
closeButton.topAnchor.constraint(equalTo: superview!.topAnchor),
85-
rotateButton.topAnchor.constraint(equalTo: superview!.topAnchor)
84+
closeButton.topAnchor.constraint(equalTo: topAnchor),
85+
rotateButton.topAnchor.constraint(equalTo: topAnchor)
8686
)
8787
}
8888

0 commit comments

Comments
 (0)