123456789101112131415161718192021 |
- //
- // UILabel+Rx.swift
- // SwiftBilibili
- //
- // Created by 罗文 on 2021/3/6.
- // Copyright © 2021年 罗文. All rights reserved.
- //
- import UIKit
- import RxCocoa
- import RxSwift
- extension Reactive where Base: UILabel {
-
- var textColor: Binder<UIColor?> {
- return Binder(self.base) { view,color in
- view.textColor = color ?? .clear
- }
- }
- }
|