diff --git a/Linphone/UI/Main/Contacts/Fragments/ContactFragment.swift b/Linphone/UI/Main/Contacts/Fragments/ContactFragment.swift index 7405352dd..10ec4c7ca 100644 --- a/Linphone/UI/Main/Contacts/Fragments/ContactFragment.swift +++ b/Linphone/UI/Main/Contacts/Fragments/ContactFragment.swift @@ -41,7 +41,7 @@ struct ContactFragment: View { contactInnerContent(contactsListViewModel: contactsListViewModel) .sheet(isPresented: $showingSheet) { ContactListBottomSheet(contactsListViewModel: contactsListViewModel, showingSheet: $showingSheet) - .presentationDetents([.fraction(0.2)]) + .presentationDetents([.fraction(0.1)]) } .sheet(isPresented: $showShareSheet) { ShareSheet(friendToShare: contactAvatarModel) diff --git a/Linphone/UI/Main/Contacts/Fragments/ContactListBottomSheet.swift b/Linphone/UI/Main/Contacts/Fragments/ContactListBottomSheet.swift index 04fc8c833..d7e770001 100644 --- a/Linphone/UI/Main/Contacts/Fragments/ContactListBottomSheet.swift +++ b/Linphone/UI/Main/Contacts/Fragments/ContactListBottomSheet.swift @@ -87,73 +87,6 @@ struct ContactListBottomSheet: View { } .padding(.horizontal, 30) .background(Color.gray100) - - VStack { - Divider() - } - .frame(maxWidth: .infinity) - - if contactsListViewModel.stringToCopy.prefix(4) != "sip:" { - Button { - if #available(iOS 16.0, *) { - if idiom != .pad { - showingSheet.toggle() - } else { - showingSheet.toggle() - dismiss() - } - } else { - showingSheet.toggle() - dismiss() - } - } label: { - HStack { - Image("envelope-simple-open") - .renderingMode(.template) - .resizable() - .foregroundStyle(Color.grayMain2c500) - .frame(width: 25, height: 25, alignment: .leading) - .padding(.all, 10) - Text("menu_invite") - .default_text_style(styleSize: 16) - Spacer() - } - .frame(maxHeight: .infinity) - } - .padding(.horizontal, 30) - .background(Color.gray100) - - VStack { - Divider() - } - .frame(maxWidth: .infinity) - } - - Button { - if #available(iOS 16.0, *) { - showingSheet.toggle() - } else { - showingSheet.toggle() - dismiss() - } - } label: { - HStack { - Image("x-circle") - .renderingMode(.template) - .resizable() - .foregroundStyle(Color.grayMain2c500) - .frame(width: 25, height: 25, alignment: .leading) - .padding(.all, 10) - Text(contactsListViewModel.stringToCopy.prefix(4) == "sip:" - ? "menu_block_address" : "menu_block_number") - .default_text_style(styleSize: 16) - Spacer() - } - .frame(maxHeight: .infinity) - } - .padding(.horizontal, 30) - .background(Color.gray100) - } .onRotate { newOrientation in orientation = newOrientation diff --git a/Linphone/UI/Main/Contacts/Fragments/ContactsFragment.swift b/Linphone/UI/Main/Contacts/Fragments/ContactsFragment.swift index a64525b45..c4f24e900 100644 --- a/Linphone/UI/Main/Contacts/Fragments/ContactsFragment.swift +++ b/Linphone/UI/Main/Contacts/Fragments/ContactsFragment.swift @@ -41,7 +41,7 @@ struct ContactsFragment: View { showingSheet: $showingSheet, showShareSheet: $showShareSheet ) - .presentationDetents([.fraction(0.2)]) + .presentationDetents([.fraction(0.3)]) } .sheet(isPresented: $showShareSheet) { ShareSheet(friendToShare: contactsListViewModel.selectedFriendToShare!) diff --git a/Linphone/UI/Main/Contacts/Fragments/ContactsListBottomSheet.swift b/Linphone/UI/Main/Contacts/Fragments/ContactsListBottomSheet.swift index f81e2898d..7af728c3e 100644 --- a/Linphone/UI/Main/Contacts/Fragments/ContactsListBottomSheet.swift +++ b/Linphone/UI/Main/Contacts/Fragments/ContactsListBottomSheet.swift @@ -56,6 +56,7 @@ struct ContactsListBottomSheet: View { } Spacer() + Button { self.contactsListViewModel.toggleStarredSelectedFriend() diff --git a/Linphone/UI/Main/History/Fragments/HistoryFragment.swift b/Linphone/UI/Main/History/Fragments/HistoryFragment.swift index 07f672c15..b43ad7607 100644 --- a/Linphone/UI/Main/History/Fragments/HistoryFragment.swift +++ b/Linphone/UI/Main/History/Fragments/HistoryFragment.swift @@ -39,7 +39,7 @@ struct HistoryFragment: View { isShowEditContactFragment: $isShowEditContactFragment, isShowEditContactFragmentAddress: $isShowEditContactFragmentAddress ) - .presentationDetents([.fraction(0.2)]) + .presentationDetents([.fraction(0.3)]) } } else { HistoryListFragment(showingSheet: $showingSheet, text: $text)