Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WinCapturer

A library for capturing window for macOS

// 获取用户主目录路径
let homeDirectory = NSHomeDirectory()

// 构建 Downloads 目录路径
let downloadsPath = "\(homeDirectory)/Downloads/translator.png"

// 调用方法保存截图到指定路径
window.saveScreenshotTo(file: downloadsPath) { error in
}

About

A library for capturing window for macOS

Resources

Stars

2 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages