Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pauljohanneskraft committed Sep 25, 2024
1 parent 17219c4 commit 6df9d75
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Sources/SpeziContact/Models/ContactOption.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,6 @@ public struct ContactOption {


extension ContactOption {
@MainActor private static var rootViewController: UIViewController? {
UIApplication
.shared
.connectedScenes
.compactMap { ($0 as? UIWindowScene)?.keyWindow }
.first?
.rootViewController
}

private struct CallContactOptionAction: ContactOptionAction {
let number: String

Expand Down Expand Up @@ -118,6 +109,16 @@ extension ContactOption {
}


@MainActor private static var rootViewController: UIViewController? {
UIApplication
.shared
.connectedScenes
.compactMap { ($0 as? UIWindowScene)?.keyWindow }
.first?
.rootViewController
}


/// A ``ContactOption`` encoding a possibility to call an individual using a phone number.
/// - Parameter number: The phone number to be called.
public static func call(_ number: String) -> ContactOption {
Expand Down

0 comments on commit 6df9d75

Please sign in to comment.