Skip to content

Commit

Permalink
Fix phone sheet #patch
Browse files Browse the repository at this point in the history
  • Loading branch information
aromanov91 committed Jul 7, 2023
1 parent 749d892 commit e676db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/OversizeComponents/PhoneSheet/PhoneSheet.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public struct PhoneSheet: View {
SectionView {
VStack(spacing: .zero) {
ForEach(numbers, id: \.self) { number in
if let numberURL = URL(string: "tel:\(number.phone)") {
if let numberURL = URL(string: "tel:\(number.phone.filter("0123456789.+".contains))") {
Link(destination: numberURL) {
Row(number.phone, subtitle: number.name)
.multilineTextAlignment(.leading)
Expand Down

0 comments on commit e676db4

Please sign in to comment.