TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Mar 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by startry.
A nice iOS View Capture Library which can capture all content.
SwViewCapture could convert all content of UIWebView to a UIImage.
一个用起来还不错的iOS截图库.(支持截取所有内容, 适用于所有ScrollView组成的视图, 包括WKWebView)
SwViewCapture支持截取网页以及ScrollView的所有内容
Swift 3.0 still has flash problem now!!
API更容易使用.
支持截取滚动视图内的所有内容.
支持截取WKWebView的内容.
position: fixed
的问题截图过程中不会出现视图闪烁.
import SwViewCapture
// ...
view.swCapture { (capturedImage) -> Void in
// capturedImage is a UIImage.
}
import SwViewCapture
// ...
view.swContentCapture { (capturedImage) -> Void in
// capturedImage is a UIImage.
}
import SwViewCapture
// ...
view.swCapture { (capturedImage) -> Void in
// capturedImage is a UIImage.
}
import SwViewCapture
// ...
view.swContentCapture { (capturedImage) -> Void in
// capturedImage is a UIImage.
}
import SwViewCapture
// ...
view.swContentScrollCapture { (capturedImage) -> Void in
// capturedImage is a UIImage.
}
iOS 8.0+, Swift 2.0+ or Swift 3.0(Compatiable)
SwViewCapture is available through CocoaPods now. To Install it, simply and the following line to your Podfile:
pod "SwViewCapture"
SwViewCapture is available under the MIT license. See the LICENSE file for more info.