소스 검색

Fix typo in struct name

Co-Authored-By: aug0211 <aug0211@users.noreply.github.com>
Deniz Cengiz 1 년 전
부모
커밋
6bd269aae6
2개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 1
      FreeAPS/Sources/Shortcuts/AppShortcuts.swift
  2. 1 1
      FreeAPS/Sources/Shortcuts/Carbs/AddCarbPresetIntent.swift

+ 1 - 1
FreeAPS/Sources/Shortcuts/AppShortcuts.swift

@@ -25,7 +25,7 @@ import Foundation
             ]
             ]
         )
         )
         AppShortcut(
         AppShortcut(
-            intent: AddCarbPresentIntent(),
+            intent: AddCarbPresetIntent(),
             phrases: [
             phrases: [
                 "Add carbs in \(.applicationName)",
                 "Add carbs in \(.applicationName)",
                 "\(.applicationName) allows to add carbs"
                 "\(.applicationName) allows to add carbs"

+ 1 - 1
FreeAPS/Sources/Shortcuts/Carbs/AddCarbPresetIntent.swift

@@ -3,7 +3,7 @@ import Foundation
 import Intents
 import Intents
 import Swinject
 import Swinject
 
 
-@available(iOS 16.0,*) struct AddCarbPresentIntent: AppIntent {
+@available(iOS 16.0,*) struct AddCarbPresetIntent: AppIntent {
     // Title of the action in the Shortcuts app
     // Title of the action in the Shortcuts app
     static var title: LocalizedStringResource = "Add carbs"
     static var title: LocalizedStringResource = "Add carbs"