Commit 8d403b13 authored by Zandor Smith's avatar Zandor Smith 💻

Fixed protection level for new function and added documentation.

parent 620565f2
......@@ -667,9 +667,9 @@
15FF2CDF5DA5331396D45D6BE19B372E /* UITableView+Deselect.swift */,
029631A7522890CCB99FE35D830F49EB /* UITableViewCell+GetTableView.swift */,
B6B1CDF2C728FC4047B456258E2BEA1E /* UIViewController+Dismiss.swift */,
FC0F662323CBCDC5003191CA /* UIViewController+Top.swift */,
FCA382BF23550AC600190994 /* UIFont+DynamicType.swift */,
FCB70CB623745EDD0042590B /* UIImage+Orientation.swift */,
FC0F662323CBCDC5003191CA /* UIViewController+Top.swift */,
);
name = Extensions;
path = GeneralToolsFramework/Classes/Extensions;
......
......@@ -9,7 +9,8 @@ import UIKit
extension UIViewController {
func topPresentedViewController() -> UIViewController {
/// Returns the top most presented UIViewController from the current UIViewController. If no viewcontrollers were presented from the current one, the current will be returned.
public func topPresentedViewController() -> UIViewController {
var topViewController = self
while let presentedViewController = topViewController.presentedViewController {
topViewController = presentedViewController
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment