mirror of
https://github.com/vector-im/element-ios.git
synced 2024-09-28 23:32:41 +00:00
Fix typo in UIView extension
This commit is contained in:
parent
83c7a1213a
commit
06f8297ee4
3 changed files with 3 additions and 3 deletions
|
@ -19,7 +19,7 @@ import Foundation
|
|||
extension UIView {
|
||||
|
||||
/// Add a subview matching parent view using autolayout
|
||||
func vc_addSubViewMathingParent(_ subView: UIView) {
|
||||
func vc_addSubViewMatchingParent(_ subView: UIView) {
|
||||
self.addSubview(subView)
|
||||
subView.translatesAutoresizingMaskIntoConstraints = false
|
||||
let views = ["view": subView]
|
||||
|
|
|
@ -42,7 +42,7 @@ extension UIViewController {
|
|||
self.addChildViewController(viewController)
|
||||
|
||||
viewController.view.frame = view.bounds
|
||||
view.vc_addSubViewMathingParent(viewController.view)
|
||||
view.vc_addSubViewMatchingParent(viewController.view)
|
||||
viewController.didMove(toParentViewController: self)
|
||||
}
|
||||
|
||||
|
|
|
@ -56,7 +56,7 @@ final class ActivityIndicatorPresenter: ActivityIndicatorPresenterType {
|
|||
backgroundOverlayView.alpha = 0
|
||||
backgroundOverlayView.isHidden = false
|
||||
|
||||
view.vc_addSubViewMathingParent(backgroundOverlayView)
|
||||
view.vc_addSubViewMatchingParent(backgroundOverlayView)
|
||||
|
||||
self.backgroundOverlayView = backgroundOverlayView
|
||||
self.activityIndicatorView = activityIndicatorView
|
||||
|
|
Loading…
Reference in a new issue