Kurdtvs-Live-Kurdish-TV-Kur.../MastodonSDK/Sources/MastodonUI/View/Container/MediaGridContainerView+View...

30 lines
648 B
Swift

//
// 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
// view.sensitiveToggleButtonBlurVisualEffectView.isHidden = !isDisplay
}
.store(in: &disposeBag)
}
}