1
0
mirror of https://github.com/mastodon/mastodon-ios.git synced 2024-12-15 02:14:50 +01:00
mastodon-app-ufficiale-ipho.../MastodonSDK/Sources/MastodonUI/View/Container/MediaGridContainerView+ViewModel.swift

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)
}
}