文件名称:swift-screencapture:一个Swift框架,可轻松在OS X上捕获屏幕
文件大小:20KB
文件格式:ZIP
更新时间:2024-02-25 10:57:41
macos swift screenshot screenshots library
屏幕截图 该框架使在OS X中捕获屏幕快照变得容易。 为了捕获屏幕区域,它使用NSTask调用/usr/sbin/screencapture 。 迦太基 github "nirix/swift-screencapture" 如何使用它 可以在“ Example目录中找到示例应用程序。 屏幕截图 import ScreenCapture // Capture part of the screen let regionUrl = ScreenCapture. captureRegion ( " /path/to/save/to.png " ) // Capture the entire sc
【文件预览】:
swift-screencapture-master
----ScreenCapture()
--------ScreenRecorder.swift(2KB)
--------ScreenCapture.swift(1KB)
--------ScreenCapture.h(528B)
--------Info.plist(908B)
----Example()
--------Assets.xcassets()
--------Base.lproj()
--------AppDelegate.swift(3KB)
--------Info.plist(1KB)
----LICENSE(1KB)
----.gitignore(261B)
----ScreenCapture.xcodeproj()
--------project.xcworkspace()
--------project.pbxproj(17KB)
--------xcshareddata()
----ScreenCapture.podspec(438B)
----README.md(1KB)