/TCScreenShotTools

摩拜单车截图分享功能

Primary LanguageSwiftMIT LicenseMIT

TCScreenShotTools

CI Status Version License Platform

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, itanchao@gmail.com

License

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