Respond to CR.

This commit is contained in:
Matthew Chen 2019-02-26 17:42:27 -05:00
parent 69635fafac
commit 0ce84b7929
3 changed files with 4 additions and 4 deletions

View file

@ -91,7 +91,7 @@ public class ImageEditorCanvasView: UIView {
strongSelf.updateAllContent()
}
clipView.addSubview(contentView)
contentView.ows_autoPinToSuperviewEdges()
contentView.autoPinEdgesToSuperviewEdges()
updateLayout()

View file

@ -144,7 +144,7 @@ class ImageEditorCropViewController: OWSViewController {
strongSelf.updateContent()
}
clipView.addSubview(contentView)
contentView.ows_autoPinToSuperviewEdges()
contentView.autoPinEdgesToSuperviewEdges()
// MARK: - Footer
@ -170,7 +170,7 @@ class ImageEditorCropViewController: OWSViewController {
stackView.layoutMargins = UIEdgeInsets(top: 16, left: 20, bottom: 16, right: 20)
stackView.isLayoutMarginsRelativeArrangement = true
self.view.addSubview(stackView)
stackView.ows_autoPinToSuperviewEdges()
stackView.autoPinEdgesToSuperviewEdges()
// MARK: - Crop View

View file

@ -69,7 +69,7 @@ public class ImageEditorView: UIView {
return false
}
self.addSubview(canvasView)
canvasView.ows_autoPinToSuperviewEdges()
canvasView.autoPinEdgesToSuperviewEdges()
self.isUserInteractionEnabled = true