mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-05-12 10:55:11 +00:00
32 lines
670 B
Swift
32 lines
670 B
Swift
//
|
|
// NewChatInviteButton.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by spaced4ndy on 28.11.2023.
|
|
// Copyright © 2023 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct NewChatInviteButton: View {
|
|
@Binding var showNewChatSheet: Bool
|
|
|
|
var body: some View {
|
|
Button {
|
|
showNewChatSheet = true
|
|
} label: {
|
|
Image(systemName: "square.and.pencil")
|
|
.resizable()
|
|
.scaledToFit()
|
|
.frame(width: 24, height: 24)
|
|
}
|
|
.sheet(isPresented: $showNewChatSheet) {
|
|
NewChatView(selection: .invite)
|
|
}
|
|
}
|
|
}
|
|
|
|
//#Preview {
|
|
// NewChatInviteButton()
|
|
//}
|