-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Error Display for ViewControllers and Enhance Performance
- Resolved the issue of displaying errors only for ViewControllers by adding an error publisher. - Improved performance by replacing the @published property with PassthroughSubject.
- Loading branch information
1 parent
f86c65d
commit c7234b3
Showing
7 changed files
with
67 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
// | ||
// UIViewController+Alert.swift | ||
// TransferList | ||
// | ||
// Created by Hessam Mahdiabadi on 11/6/23. | ||
// | ||
|
||
import UIKit | ||
|
||
extension UIViewController { | ||
|
||
func showAlert(title: String, message: String) { | ||
let dialogMessage = UIAlertController(title: title, message: message, preferredStyle: .alert) | ||
let ok = UIAlertAction(title: "OK", style: .default) | ||
|
||
dialogMessage.addAction(ok) | ||
self.present(dialogMessage, animated: true, completion: nil) | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters