这里是按照「分类」阅读往期的 HelloGitHub 月刊内容, 您目前在查看 HelloGitHub Swift 项目 集合。
一款优雅的 Swift 骨架屏库。骨架屏是在页面展示所需的数据还未加载完成时,先展示出页面大致结构的一项技术。这个 Swift 骨架屏库容易上手、接口友好,支持所有 UIView、自定义动画等功能。
macOS 上的 alt-tab 窗口切换工具。这是一款将 Windows 的 alt-tab 切换窗口功能带到了 macOS 的应用,支持一键关闭、全屏、隐藏应用,自定义 AltTab 外观、快捷键等功能。
iOS 设备的定位模拟器。这是一个能够轻松修改 iOS 和 iPadOS 位置信息的 macOS 应用,使用时手机端无需越狱和安装应用,只需通过 USB 或 WiFi 将设备连接上电脑,即可轻松完成位置修改。
macOS/iOS 上的笔记管理器。这是一款适用于 macOS 和 iOS 的笔记管理工具,它支持 Markdown、加密笔记、生成网页、TouchBar 快捷键、超过 170 种编程语言的语法高亮、iCloud Drive 或 Dropbox 同步内容等功能。
用 Swift 重写后的 Foundation 框架。Foundation 框架是 macOS 和 iOS 的基础组件(标准库),该项目是 Apple 用 Swift 重写后的 Foundation 源码,它更快、更安全。
macOS 上的程序员瑞士军刀。该项目是 DevToys 的 macOS 版本,无需安装下载解压后即可使用。它同样实现了程序员日常开发会用到的功能,比如时间戳转化、Base64 编/解码、JSON 格式化等。
维基百科官方开源的 iOS 客户端。维基百科是一本线上的百科全书,这是它的 iOS 客户端,支持搜索资料、热门文章、保存文章、多语言、夜间阅读等功能。
轻松实现丝滑动画的 Swift 库。用于 iOS 和 macOS 的动画引擎库,可以轻松创建流畅、感觉很棒的动画。它没有外部依赖,可以很容易地引入进基于 UIKit、SwiftUI 或 AppKit 的项目。
if panGestureRecognizer.state == .ended { // Create a spring with some bounciness. `response` affects the animation's duration. let animatedSpring = Spring(dampingRatio: 0.68, response: 0.80) // Get the gesture's lift-off velocity, and pass it into the Wave animation. let gestureVelocity = panGestureRecognizer.velocity(in: view) Wave.animate(withSpring: animatedSpring, gestureVelocity: gestureVelocity) { // Update animatable properties on the view's `animator` property, _not_ the view itself. pipView.animator.center = pipViewDestination // Some target CGPoint that you calculate. pipView.animator.scale = CGPoint(x: 1.1, y: 1.1) } }