Files
OrderScheduling/Pods/RxCocoa/RxCocoa/macOS/NSView+Rx.swift
DDIsFriend f0e8a1709d initial
2023-08-18 17:28:57 +08:00

22 lines
468 B
Swift

//
// NSView+Rx.swift
// RxCocoa
//
// Created by Krunoslav Zaher on 12/6/15.
// Copyright © 2015 Krunoslav Zaher. All rights reserved.
//
#if os(macOS)
import Cocoa
import RxSwift
extension Reactive where Base: NSView {
/// Bindable sink for `alphaValue` property.
public var alpha: Binder<CGFloat> {
return Binder(self.base) { view, value in
view.alphaValue = value
}
}
}
#endif