Skip to content

A sample project to show how to create a draggable and resizable NSView in Cocoa framework in AppKit using Xcode 11.4 on MacOS 10.15 using Swift 5.2

Notifications You must be signed in to change notification settings

1c7/BBDragResizableView

 
 

Repository files navigation

macOS App

这是一个 macOS 项目,使用 XCode 和 Swift 开发。
fork 自: https://github.com/bibinjacobpulickal/BBDragResizableView

说明

本库只对创建者有用

目的

  • 做一个可以拖动,可以缩放的方块 (可以理解为 web 开发里的 <div></div>
  • 以及做各种实验,来学习 macOS 桌面程序的开发

意义

为之后更复杂的功能做铺垫

fork 之后的改动:

  1. 显示不同来源的图片(本地,网络,包内,Assets.xcassets 内)
  2. 让方块移动时可以贴边
  3. 增加了手势检测

About

A sample project to show how to create a draggable and resizable NSView in Cocoa framework in AppKit using Xcode 11.4 on MacOS 10.15 using Swift 5.2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%