mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2025-06-29 04:39:53 +00:00
cleanup; comment
This commit is contained in:
parent
01fedf31fe
commit
f9e5dea059
2 changed files with 3 additions and 8 deletions
|
@ -46,13 +46,6 @@ struct ChatListView: View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
var isUserPickerSheetPresented: Binding<Bool> {
|
|
||||||
Binding(
|
|
||||||
get: { activeUserPickerSheet != nil },
|
|
||||||
set: { if !$0 { activeUserPickerSheet = nil } }
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
private var viewBody: some View {
|
private var viewBody: some View {
|
||||||
ZStack(alignment: oneHandUI ? .bottomLeading : .topLeading) {
|
ZStack(alignment: oneHandUI ? .bottomLeading : .topLeading) {
|
||||||
NavStackCompat(
|
NavStackCompat(
|
||||||
|
|
|
@ -26,7 +26,9 @@ extension View {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// iOS 15 Compatible detents
|
/// iOS 15 Compatible detents.
|
||||||
|
/// Defines the fallback thresholds,
|
||||||
|
/// since fractional and constant height sheets are unavailable.
|
||||||
enum SheetDetent {
|
enum SheetDetent {
|
||||||
case medium
|
case medium
|
||||||
case large
|
case large
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue