在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:WeTransfer/WeScan开源软件地址:https://github.com/WeTransfer/WeScan开源编程语言:Swift 99.5%开源软件介绍:WeScanWeScan makes it easy to add scanning functionalities to your iOS app!
It's modelled after Features
DemoRequirements
InstallationSwift Package ManagerThe Swift Package Manager is a tool for automating the distribution of Swift code and is integrated into the Once you have your Swift package set up, adding WeScan as a dependency is as easy as adding it to the dependencies: [
.package(url: "https://github.com/WeTransfer/WeScan.git", .upToNextMajor(from: "1.7.0"))
] CarthageCarthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks. To integrate WeScan into your Xcode project using Carthage, specify it in your
Run ManuallyJust download the project, and drag and drop the "WeScan" folder in your project. Simply add the WeScan framework in the project's Embedded Binaries and Linked Frameworks and Libraries. UsageSwift
class YourViewController: UIViewController, ImageScannerControllerDelegate {
// YourViewController code here
}
func imageScannerController(_ scanner: ImageScannerController, didFailWithError error: Error) {
// You are responsible for carefully handling the error
print(error)
}
func imageScannerController(_ scanner: ImageScannerController, didFinishScanningWithResults results: ImageScannerResults) {
// The user successfully scanned an image, which is available in the ImageScannerResults
// You are responsible for dismissing the ImageScannerController
scanner.dismiss(animated: true)
}
func imageScannerControllerDidCancel(_ scanner: ImageScannerController) {
// The user tapped 'Cancel' on the scanner
// You are responsible for dismissing the ImageScannerController
scanner.dismiss(animated: true)
}
let scannerViewController = ImageScannerController()
scannerViewController.imageScannerDelegate = self
present(scannerViewController, animated: true) Objective-C
Example ImplementationImageScannerController *scannerViewController = [[ImageScannerController alloc] init];
[self presentViewController:scannerViewController animated:YES completion:nil]; ContributingAs the creators, and maintainers of this project, we're glad to invite contributors to help us stay up to date. Please take a moment to review the contributing document in order to make the contribution process easy and effective for everyone involved.
LicenseWeScan is available under the MIT license. See the LICENSE file for more info. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论