mirror of
https://github.com/mastodon/mastodon-ios.git
synced 2024-12-08 14:46:42 +01:00
30 lines
648 B
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)
|
|
}
|
|
|
|
}
|