-
To run the example project, clone the repo, and run
pod install
from the Example directory first. -
import AdsForMyOtherApps
-
AdsForMyOtherApps calls a view to overlay your current view by initializing class
Advertisement(images: [UIImage], seconds: Int?, url: String, target: UIViewController)
.3a. One or more images will play like a slide show over the amount of seconds specified. Put images in the Images.xcassets folder, the image will autofill as you enter it into the UIImage array argument. 1x full screen images are 375x667.
3b. Amount of seconds (optional) will not allow user to exit until countdown reaches zero and "x" appears.
3c. If seconds argument is set to "nil", an "x" will appear immediately and there will be no countdown.
3d. Target argument is the current ViewController.
For Example:
let adView = Advertisement(images: [#imageLiteral(resourceName: "RansomAd"),#imageLiteral(resourceName: "RansomAd2"),#imageLiteral(resourceName: "RansomAd3")], seconds: 10, url: "itms-apps://itunes.apple.com/app/id1192831637", target: self)
AdsForMyOtherApps is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "AdsForMyOtherApps"
Halvorsen, “aaron.halvorsen@gmail.com git config --global user.name “halvorsen
AdsForMyOtherApps is available under the MIT license. See the LICENSE file for more info.