25 lines
571 B
Swift
25 lines
571 B
Swift
//
|
|
// MenuController+UI.swift
|
|
// PrivadoVPN
|
|
//
|
|
// Created by Murad Shabanov on 29.06.2021.
|
|
// Copyright © 2021 Privado LLC. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
|
|
extension MenuController {
|
|
|
|
static func createButton(image name: String) -> ImageView {
|
|
|
|
let imageView = ImageView(frame: .zero)
|
|
imageView.translatesAutoresizingMaskIntoConstraints = false
|
|
|
|
if let image = NSImage(named: name) {
|
|
imageView.image = image
|
|
imageView.useHandCursor = true
|
|
}
|
|
return imageView
|
|
}
|
|
}
|