Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for CustomViews in show() method?! #3

Open
amarildolucas opened this issue Mar 19, 2019 · 0 comments
Open

Support for CustomViews in show() method?! #3

amarildolucas opened this issue Mar 19, 2019 · 0 comments

Comments

@amarildolucas
Copy link

Like UIActivityIndicatorView, it would be nice if DotsLoadingView could be added to any CustomView.

public func show() {
        if let rootViewController = UIApplication.shared.windows.first?.rootViewController {
            rootViewController.view.addSubview(self)
            self.center = rootViewController.view.center
            self.startAnimation()
        } else {
            print("Cannot show DotsLoadingView.")
        }
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant