From e0bafa3edf80795c4744689a1d62d46c2e0b77d9 Mon Sep 17 00:00:00 2001 From: Ryan Lepinski Date: Wed, 11 Oct 2023 14:43:55 -0700 Subject: [PATCH] Fix method name typo --- .../Airship Sample/LiveActivityManagementView.swift | 2 +- Airship/AirshipCore/Source/Channel.swift | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Airship Sample/Airship Sample/LiveActivityManagementView.swift b/Airship Sample/Airship Sample/LiveActivityManagementView.swift index 79dec7b56..7280c64db 100644 --- a/Airship Sample/Airship Sample/LiveActivityManagementView.swift +++ b/Airship Sample/Airship Sample/LiveActivityManagementView.swift @@ -183,7 +183,7 @@ struct DeliveryActivityView: View { } } .task { - for await update in Airship.channel.liveActityRegistrationStatusUpdates( + for await update in Airship.channel.liveActivityRegistrationStatusUpdates( activity: activity ) { await MainActor.run { diff --git a/Airship/AirshipCore/Source/Channel.swift b/Airship/AirshipCore/Source/Channel.swift index 5f8949cc9..77298317f 100644 --- a/Airship/AirshipCore/Source/Channel.swift +++ b/Airship/AirshipCore/Source/Channel.swift @@ -703,7 +703,7 @@ extension AirshipChannel { /// - name: The live activity name /// - Returns A `LiveActivityRegistrationStatusUpdates` @available(iOS 16.1, *) - public func liveActityRegistrationStatusUpdates( + public func liveActivityRegistrationStatusUpdates( name: String ) -> LiveActivityRegistrationStatusUpdates { @@ -715,7 +715,7 @@ extension AirshipChannel { /// - activity: The live activity /// - Returns A `LiveActivityRegistrationStatusUpdates` @available(iOS 16.1, *) - public func liveActityRegistrationStatusUpdates( + public func liveActivityRegistrationStatusUpdates( activity: Activity ) -> LiveActivityRegistrationStatusUpdates { self.liveActivityRegistry.registrationUpdates(name: nil, id: activity.id)