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

How to use TAOverlay in Swift2.0? #15

Open
cleverliz opened this issue Apr 30, 2016 · 1 comment
Open

How to use TAOverlay in Swift2.0? #15

cleverliz opened this issue Apr 30, 2016 · 1 comment

Comments

@cleverliz
Copy link

i'm launch your TAOverlay felt it's perfect and i want to use TAOverlay in mine swift project

i use the main function showOverlayWithLabel but it did not work

so could you tell me how to work in swift

thanks

@rohantk
Copy link

rohantk commented May 24, 2020

Copy paste the TAOverlay.h and TAOverlay.m into your Swift project. Xcode will create a bridging header automatically. Open your bridging header file, and #import "TAoverlay.h" . In your .swift file, where TAOverlay is going to be used, type this, with other TAOverlay options as you need.

TAOverlay.show(withLabel: "This is an error", options: [TAOverlayOptions.overlayTypeError , TAOverlayOptions.overlayDismissTap , TAOverlayOptions.overlaySizeRoundedRect])

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

2 participants