Fix typo in UIView extension

This commit is contained in:
SBiOSoftWhare 2019-01-22 17:09:15 +01:00
parent 83c7a1213a
commit 06f8297ee4
3 changed files with 3 additions and 3 deletions

View file

@ -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]

View file

@ -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)
}

View file

@ -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