mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-04-22 18:46:53 -04:00
20 lines
485 B
Swift
20 lines
485 B
Swift
//
|
|
// CryptomatorDockTilePlugin.swift
|
|
// Integrations
|
|
//
|
|
// Created by Tobias Hagemann on 22.09.25.
|
|
// Copyright © 2025 Cryptomator. All rights reserved.
|
|
//
|
|
|
|
import AppKit
|
|
|
|
class CryptomatorDockTilePlugin: NSObject, NSDockTilePlugIn {
|
|
func setDockTile(_ dockTile: NSDockTile?) {
|
|
guard let dockTile = dockTile, let image = Bundle(for: Self.self).image(forResource: "Cryptomator") else {
|
|
return
|
|
}
|
|
dockTile.contentView = NSImageView(image: image)
|
|
dockTile.display()
|
|
}
|
|
}
|