1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
| //
| // NSImageView+Rx.swift
| // RxCocoa
| //
| // Created by Krunoslav Zaher on 5/17/15.
| // Copyright © 2015 Krunoslav Zaher. All rights reserved.
| //
|
| #if os(macOS)
|
| import RxSwift
| import Cocoa
|
| extension Reactive where Base: NSImageView {
|
| /// Bindable sink for `image` property.
| public var image: Binder<NSImage?> {
| return Binder(self.base) { imageView, image in
| imageView.image = image
| }
| }
| }
|
| #endif
|
|