* ios: settings for auto-accepting images, link previews, spinner for link previews * android: settings for auto-accepting images, link previews, spinner for link previews, privacy settings * update translation Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com> * translation Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com> * translation Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com> Co-authored-by: JRoberts <8711996+jr-simplex@users.noreply.github.com>
30 lines
666 B
Swift
30 lines
666 B
Swift
//
|
|
// SettingsButton.swift
|
|
// SimpleX
|
|
//
|
|
// Created by Evgeny Poberezkin on 31/01/2022.
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct SettingsButton: View {
|
|
@EnvironmentObject var chatModel: ChatModel
|
|
@State private var showSettings = false
|
|
|
|
var body: some View {
|
|
Button { showSettings = true } label: {
|
|
Image(systemName: "gearshape")
|
|
}
|
|
.sheet(isPresented: $showSettings, content: {
|
|
SettingsView(showSettings: $showSettings)
|
|
})
|
|
}
|
|
}
|
|
|
|
struct SettingsButton_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
SettingsButton()
|
|
}
|
|
}
|