Signal-iOS/SignalUI/Views/PrimaryImageView.swift
Ehren Kret 30424e19ae remove OWSNavigationControllerBase
This appears to have been a hack for something that may have been
necessary in older versions of iOS. Current iOS seems to just return
true with no side-effects from this super call so there's no reason to
retain this hack apparent.
2024-04-28 23:19:43 -05:00

17 lines
374 B
Swift

//
// Copyright 2021 Signal Messenger, LLC
// SPDX-License-Identifier: AGPL-3.0-only
//
import Foundation
import UIKit
// Any view that exposes a read-only image that can be used for transitions
public protocol PrimaryImageView: UIView {
var primaryImage: UIImage? { get }
}
extension UIImageView: PrimaryImageView {
public var primaryImage: UIImage? { image }
}