/* * Copyright (c) 2010-2023 Belledonne Communications SARL. * * This file is part of linphone-iphone * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ import SwiftUI import linphonesw struct SipAddressesPopup: View { @ObservedObject private var telecomManager = TelecomManager.shared @EnvironmentObject var contactAvatarModel: ContactAvatarModel @EnvironmentObject var contactsListViewModel: ContactsListViewModel @Binding var isShowSipAddressesPopup: Bool @Binding var isShowSipAddressesPopupType: Int var body: some View { GeometryReader { geometry in VStack(alignment: .leading) { HStack { Text("contact_dialog_pick_phone_number_or_sip_address_title") .default_text_style_800(styleSize: 16) .padding(.bottom, 2) Spacer() Image("x") .renderingMode(.template) .resizable() .foregroundStyle(Color.grayMain2c600) .frame(width: 25, height: 25) .padding(.all, 10) } .frame(maxWidth: .infinity) ForEach(0..