Tusker/Packages/GalleryVC/Sources/GalleryVC/GalleryContentViewControlle...

47 lines
1.1 KiB
Swift
Raw Normal View History

2024-03-19 18:58:51 +00:00
//
// GalleryContentViewController.swift
// GalleryVC
//
// Created by Shadowfacts on 3/17/24.
//
import UIKit
@MainActor
public protocol GalleryContentViewController: UIViewController {
var container: GalleryContentViewControllerContainer? { get set }
var contentSize: CGSize { get }
var activityItemsForSharing: [Any] { get }
var caption: String? { get }
2024-03-29 01:32:11 +00:00
var contentOverlayAccessoryViewController: UIViewController? { get }
2024-03-19 18:58:51 +00:00
var bottomControlsAccessoryViewController: UIViewController? { get }
var canAnimateFromSourceView: Bool { get }
func setControlsVisible(_ visible: Bool, animated: Bool)
func galleryContentDidAppear()
func galleryContentWillDisappear()
2024-03-19 18:58:51 +00:00
}
public extension GalleryContentViewController {
2024-03-29 01:32:11 +00:00
var contentOverlayAccessoryViewController: UIViewController? {
nil
}
2024-03-19 18:58:51 +00:00
var bottomControlsAccessoryViewController: UIViewController? {
nil
}
var canAnimateFromSourceView: Bool {
true
}
func setControlsVisible(_ visible: Bool, animated: Bool) {
}
func galleryContentDidAppear() {
}
func galleryContentWillDisappear() {
}
2024-03-19 18:58:51 +00:00
}