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 }
|
2024-03-20 15:49:00 +00:00
|
|
|
|
|
|
|
func setControlsVisible(_ visible: Bool, animated: Bool)
|
2024-04-01 00:41:57 +00:00
|
|
|
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
|
|
|
|
}
|
2024-03-20 15:49:00 +00:00
|
|
|
|
|
|
|
func setControlsVisible(_ visible: Bool, animated: Bool) {
|
|
|
|
}
|
2024-04-01 00:41:57 +00:00
|
|
|
|
|
|
|
func galleryContentDidAppear() {
|
|
|
|
}
|
|
|
|
|
|
|
|
func galleryContentWillDisappear() {
|
|
|
|
}
|
2024-03-19 18:58:51 +00:00
|
|
|
}
|