my fork of the bluesky client
1//
2// SheetManager.swift
3// Pods
4//
5// Created by Hailey on 10/1/24.
6//
7
8import ExpoModulesCore
9
10class SheetManager {
11 static let shared = SheetManager()
12
13 private var sheetViews = NSHashTable<SheetView>(options: .weakMemory)
14
15 func add(_ view: SheetView) {
16 sheetViews.add(view)
17 }
18
19 func remove(_ view: SheetView) {
20 sheetViews.remove(view)
21 }
22
23 func dismissAll() {
24 sheetViews.allObjects.forEach { sheetView in
25 sheetView.dismiss()
26 }
27 }
28}