TCScreenShotTools 1.2.0

TCScreenShotTools 1.2.0

TestsTested
LangLanguage SwiftSwift
License MIT
ReleasedLast Release May 2017
SwiftSwift Version 3.0
SPMSupports SPM

Maintained by tanchao.



  • By
  • itanchao

TCScreenShotTools

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

Installation

TCScreenShotTools is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "TCScreenShotTools"

Setting

Using

import UIKit
import TCScreenShotTools
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate   {
    var window: UIWindow?
    func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
        TCScreenShotTools.shared.enable = true
        TCScreenShotTools.shared.delegate = self
        return true
    }
}
 extension AppDelegate: TCScreenShotToolsDelegate{
    func screenShotTools(_tools: TCScreenShotTools, didClickShareBtn withShareType: TrickyShareType, withIcon: UIImage, in shareView: TrickyShareView) {
        print(withShareType)
        print(withIcon)
    }
}

yanshi

Author

itanchao, [email protected]

License

TCScreenShotTools is available under the MIT license. See the LICENSE file for more info.