* ios: send multiple images * multi-select works (TODO race conditions) * send multiple images, progress indicator in compose view * scroll between fullscreen images, scroll to quoted item * add swipe animation * fix model state when sending the image * fix sending multiple images * use MainActor * improve scrolling * faster scroll * improve scroll animation * fix model updates
31 lines
655 B
Swift
31 lines
655 B
Swift
//
|
|
// NavLinkPlain.swift
|
|
// SimpleX
|
|
//
|
|
// Created by Evgeny Poberezkin on 11/02/2022.
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct NavLinkPlain<V: Hashable, Label: View>: View {
|
|
@State var tag: V
|
|
@Binding var selection: V?
|
|
@ViewBuilder var label: () -> Label
|
|
var disabled = false
|
|
|
|
var body: some View {
|
|
ZStack {
|
|
Button("") { DispatchQueue.main.async { selection = tag } }
|
|
.disabled(disabled)
|
|
label()
|
|
}
|
|
}
|
|
}
|
|
|
|
//struct NavLinkPlain_Previews: PreviewProvider {
|
|
// static var previews: some View {
|
|
// NavLinkPlain()
|
|
// }
|
|
//}
|