diff --git a/Riot/Categories/UIView.swift b/Riot/Categories/UIView.swift index b27ec3657..5a4652104 100644 --- a/Riot/Categories/UIView.swift +++ b/Riot/Categories/UIView.swift @@ -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] diff --git a/Riot/Categories/UIViewController.swift b/Riot/Categories/UIViewController.swift index 9bfc63008..2b0e16155 100644 --- a/Riot/Categories/UIViewController.swift +++ b/Riot/Categories/UIViewController.swift @@ -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) } diff --git a/Riot/Modules/Common/ActivityIndicator/ActivityIndicatorPresenter.swift b/Riot/Modules/Common/ActivityIndicator/ActivityIndicatorPresenter.swift index 6acfaec94..36caf83c1 100755 --- a/Riot/Modules/Common/ActivityIndicator/ActivityIndicatorPresenter.swift +++ b/Riot/Modules/Common/ActivityIndicator/ActivityIndicatorPresenter.swift @@ -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