Skip to content

nswbmw/ravencam

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

渡鸦相机

极简黑白相机

简体中文 | English

App Store Platform Swift License SPM

功能

  • 实时黑白滤镜 — 基于 Core Image 的实时预览
  • 参数调节 — 曝光、反差、锐化、暗角、噪点、模糊
  • 闪光灯控制 — 开 / 关 / 自动
  • 摄像头切换 — 一键切换前置 / 后置摄像头
  • 日期水印 — 可选的拍摄日期水印
  • 无损拍摄 — 高分辨率照片输出
  • 地理位置 — 可选的位置信息记录
  • 内置相册 — 浏览、缩放、分享、删除照片
  • EXIF 读写 — 照片参数写入 EXIF

截图

拍摄 参数调节 相册
拍摄 参数调节 相册

要求

  • iOS 18.6+
  • Xcode 16+
  • Swift 5

依赖

通过 Swift Package Manager 管理:

构建

  1. 克隆仓库
    git clone https://github.com/nswbmw/ravencam.git
  2. 用 Xcode 打开 ravencam.xcodeproj
  3. Xcode 会自动拉取 SPM 依赖
  4. 选择目标设备,点击运行

项目结构

ravencam/
├── AppDelegate.swift          # App 生命周期
├── SceneDelegate.swift        # 场景管理
├── Controller/
│   ├── CameraViewController/  # 相机主界面
│   ├── CameraController.swift # 相机控制 & 滤镜处理
│   ├── PageViewController.swift # 页面切换容器
│   ├── AlbumViewController/   # 相册浏览
│   │   └── PhotoPreviewController/ # 照片预览 & 缩放
│   └── SettingViewController/ # 设置页面
├── Model/
│   ├── Photo.swift            # 照片参数模型
│   └── PhotoWithImage.swift   # 带图片的照片模型
├── View/                      # 自定义 UI 组件
├── Util/
│   ├── Cache.swift            # UserDefaults 缓存
│   └── Util.swift             # 工具函数
├── Extension/                 # UIImage / UIView / Float 扩展
├── Class/                     # 手势 & 相册工具类
├── CustomBlurEffectView/      # 自定义模糊效果
└── Resource/                  # 字体资源

许可证

MIT

About

极简黑白相机

Resources

License

Stars

1 star

Watchers

0 watching

Forks

Contributors