From 4408f8be113fad0c7a0f56c3ca8a50322bf72523 Mon Sep 17 00:00:00 2001 From: Sophia Liu Date: Wed, 21 Feb 2024 18:19:21 -0600 Subject: [PATCH] fix alert color to white --- .../ViewControllers/HIScanAttendanceViewController.swift | 1 + HackIllinois/ViewControllers/HIScanMentorViewController.swift | 1 + HackIllinois/ViewControllers/HIScanQRCodeViewController.swift | 2 ++ 3 files changed, 4 insertions(+) diff --git a/HackIllinois/ViewControllers/HIScanAttendanceViewController.swift b/HackIllinois/ViewControllers/HIScanAttendanceViewController.swift index a966dc9d..45c4a6bd 100644 --- a/HackIllinois/ViewControllers/HIScanAttendanceViewController.swift +++ b/HackIllinois/ViewControllers/HIScanAttendanceViewController.swift @@ -203,6 +203,7 @@ extension HIScanAttendanceViewController: AVCaptureMetadataOutputObjectsDelegate alertMessage = "Something isn't quite right." } let alert = UIAlertController(title: alertTitle, message: alertMessage, preferredStyle: .alert) + alert.view.backgroundColor = UIColor.white if alertTitle == "Success!" { alert.addAction( UIAlertAction(title: "OK", style: .default, handler: { _ in diff --git a/HackIllinois/ViewControllers/HIScanMentorViewController.swift b/HackIllinois/ViewControllers/HIScanMentorViewController.swift index ffcd2977..4413ddba 100644 --- a/HackIllinois/ViewControllers/HIScanMentorViewController.swift +++ b/HackIllinois/ViewControllers/HIScanMentorViewController.swift @@ -215,6 +215,7 @@ extension HIScanMentorViewController: AVCaptureMetadataOutputObjectsDelegate { } // Create custom alert for attendee check in functionality let alert = UIAlertController(title: alertTitle, message: alertMessage, preferredStyle: .alert) + alert.view.backgroundColor = UIColor.white let titleFont = UIFont(name: "MontserratRoman-Bold", size: 22) let messageFont = UIFont(name: "MontserratRoman-Medium", size: 16) let titleColor = #colorLiteral(red: 0.337254902, green: 0.1411764706, blue: 0.06666666667, alpha: 1) diff --git a/HackIllinois/ViewControllers/HIScanQRCodeViewController.swift b/HackIllinois/ViewControllers/HIScanQRCodeViewController.swift index 8f139d6e..7da14b97 100644 --- a/HackIllinois/ViewControllers/HIScanQRCodeViewController.swift +++ b/HackIllinois/ViewControllers/HIScanQRCodeViewController.swift @@ -276,6 +276,7 @@ extension HIScanQRCodeViewController: AVCaptureMetadataOutputObjectsDelegate { } // Create custom alert for attendee check in functionality let alert = UIAlertController(title: alertTitle, message: alertMessage, preferredStyle: .alert) + alert.view.backgroundColor = UIColor.white let titleFont = UIFont(name: "MontserratRoman-Bold", size: 22) let messageFont = UIFont(name: "MontserratRoman-Medium", size: 16) let titleColor = #colorLiteral(red: 0.337254902, green: 0.1411764706, blue: 0.06666666667, alpha: 1) @@ -338,6 +339,7 @@ extension HIScanQRCodeViewController: AVCaptureMetadataOutputObjectsDelegate { self.respondingToQRCodeFound = true } let alert = UIAlertController(title: alertTitle, message: alertMessage, preferredStyle: .alert) + alert.view.backgroundColor = UIColor.white if alertTitle == "Success!" { alert.addAction( UIAlertAction(title: "OK", style: .default, handler: { _ in