This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// The ring leader | |
final class ModalTransitioningDelegate: NSObject, UIViewControllerTransitioningDelegate { | |
func presentationController( | |
forPresented presented: UIViewController, | |
presenting: UIViewController?, | |
source: UIViewController | |
) -> UIPresentationController? { | |
return PresentationController(presentedViewController: presented, presenting: presenting) | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Basic idea from https://swiftui-lab.com/communicating-with-the-view-tree-part-1/ | |
import SwiftUI | |
// --- Provides support for a child to propogate its frame | |
struct ChildPreferenceData: Equatable { | |
let idx: Int | |
let bounds: CGRect | |
} |
OlderNewer