This file contains hidden or 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
| // | |
| // ExpenseList.swift | |
| // ExpensesListApp | |
| // | |
| // Created by Hellen Soloviy on 21.01.2026. | |
| // | |
| import SwiftUI | |
| import TipKit |
This file contains hidden or 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
| // | |
| // NetworkHandler.swift | |
| // Auth SwiftUI App Test | |
| // | |
| // Created by Hellen Soloviy on 19.01.2026. | |
| // | |
| import Foundation | |
| enum HTTPMethod: String { |
This file contains hidden or 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
| import Foundation | |
| protocol JSONDecodable { | |
| func jsonParams() throws -> [String : Any] | |
| } | |
| extension JSONDecodable where Self : Codable { | |
| func jsonParams() throws -> [String : Any] { | |
| let encoder = JSONEncoder() | |
| let data = try encoder.encode(self) |
This file contains hidden or 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
| import Foundation | |
| @objc class RegexValidator: NSObject { | |
| @objc enum ValidationPattern: Int { | |
| case email = 0 | |
| case notEmpty | |
| case stateInUSA | |
| case stateInAustralia | |
| case state | |