Bluesky app fork with some witchin' additions 💫
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix crash (#8348)

authored by

hailey and committed by
GitHub
a6455b3d a260ecd3

+9 -3
+9 -3
modules/bottom-sheet/ios/SheetView.swift
··· 145 145 146 146 func updateLayout() { 147 147 // Allow updates either when identifiers match OR when prevLayoutDetentIdentifier is nil (first real content update) 148 - if (self.prevLayoutDetentIdentifier == self.selectedDetentIdentifier || self.prevLayoutDetentIdentifier == nil), 148 + if self.prevLayoutDetentIdentifier == self.selectedDetentIdentifier || self.prevLayoutDetentIdentifier == nil, 149 149 let contentHeight = self.innerView?.subviews.first?.frame.size.height { 150 150 self.sheetVc?.updateDetents(contentHeight: self.clampHeight(contentHeight), 151 151 preventExpansion: self.preventExpansion) ··· 155 155 } 156 156 157 157 func dismiss() { 158 + guard let sheetVc = self.sheetVc else { 159 + return 160 + } 161 + 158 162 self.isClosing = true 159 - self.sheetVc?.dismiss(animated: true) { [weak self] in 160 - self?.destroy() 163 + DispatchQueue.main.async { 164 + sheetVc.dismiss(animated: true) { [weak self] in 165 + self?.destroy() 166 + } 161 167 } 162 168 } 163 169