Skip to content

Commit

Permalink
fix alert color to white
Browse files Browse the repository at this point in the history
  • Loading branch information
s0phialiu committed Feb 22, 2024
1 parent 20a82be commit 4408f8b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 2 additions & 0 deletions HackIllinois/ViewControllers/HIScanQRCodeViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4408f8b

Please sign in to comment.