To run the example project, clone the repo, and run pod install
from the Example directory first.
TCScreenShotTools is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "TCScreenShotTools"
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)
}
}
itanchao, itanchao@gmail.com
TCScreenShotTools is available under the MIT license. See the LICENSE file for more info.