2022-01-27 14:23:39 +01:00
|
|
|
//
|
|
|
|
// MediaGridContainerView+ViewModel.swift
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// Created by MainasuK on 2021-12-14.
|
|
|
|
//
|
|
|
|
|
|
|
|
import UIKit
|
|
|
|
import Combine
|
|
|
|
|
|
|
|
extension MediaGridContainerView {
|
|
|
|
public class ViewModel {
|
|
|
|
var disposeBag = Set<AnyCancellable>()
|
|
|
|
|
|
|
|
@Published public var isSensitiveToggleButtonDisplay: Bool = false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
extension MediaGridContainerView.ViewModel {
|
|
|
|
|
|
|
|
func bind(view: MediaGridContainerView) {
|
|
|
|
$isSensitiveToggleButtonDisplay
|
|
|
|
.sink { isDisplay in
|
2022-02-11 13:21:28 +01:00
|
|
|
// view.sensitiveToggleButtonBlurVisualEffectView.isHidden = !isDisplay
|
2022-01-27 14:23:39 +01:00
|
|
|
}
|
|
|
|
.store(in: &disposeBag)
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|