gitextract_6ppky8xg/ ├── .gitignore ├── LICENSE ├── README.md ├── SAM2-Demo/ │ ├── Assets.xcassets/ │ │ ├── AccentColor.colorset/ │ │ │ └── Contents.json │ │ ├── AppIcon.appiconset/ │ │ │ └── Contents.json │ │ └── Contents.json │ ├── Common/ │ │ ├── CGImage+Extension.swift │ │ ├── CGImage+RawBytes.swift │ │ ├── Color+Extension.swift │ │ ├── CoreImageExtensions.swift │ │ ├── DirectoryDocument.swift │ │ ├── MLMultiArray+Image.swift │ │ ├── Models.swift │ │ ├── NSImage+Extension.swift │ │ └── SAM2.swift │ ├── ContentView.swift │ ├── Preview Content/ │ │ └── Preview Assets.xcassets/ │ │ └── Contents.json │ ├── Ripple/ │ │ ├── Ripple.metal │ │ ├── RippleModifier.swift │ │ └── RippleViewModifier.swift │ ├── SAM2_1SmallImageEncoderFLOAT16.mlpackage/ │ │ ├── Data/ │ │ │ └── com.apple.CoreML/ │ │ │ └── model.mlmodel │ │ └── Manifest.json │ ├── SAM2_1SmallMaskDecoderFLOAT16.mlpackage/ │ │ ├── Data/ │ │ │ └── com.apple.CoreML/ │ │ │ └── model.mlmodel │ │ └── Manifest.json │ ├── SAM2_1SmallPromptEncoderFLOAT16.mlpackage/ │ │ ├── Data/ │ │ │ └── com.apple.CoreML/ │ │ │ └── model.mlmodel │ │ └── Manifest.json │ ├── SAM2_Demo.entitlements │ ├── SAM2_DemoApp.swift │ └── Views/ │ ├── AnnotationListView.swift │ ├── ImageView.swift │ ├── LayerListView.swift │ ├── MaskEditor.swift │ ├── SubtoolbarView.swift │ └── ZoomableScrollView.swift ├── SAM2-Demo.xcodeproj/ │ ├── project.pbxproj │ └── project.xcworkspace/ │ ├── contents.xcworkspacedata │ └── xcshareddata/ │ └── swiftpm/ │ └── Package.resolved └── sam2-cli/ └── MainCommand.swift