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 | |
| /// Simple wrapper enum for decoding JSON with optional or unknown/shifting values. | |
| /// | |
| /// If decoding of the Value type fails, the value is decoded as a string. | |
| /// | |
| /// ```swift | |
| /// enum State { case idle; case running; case stopped } | |
| /// try JSONDecoder().decode(ValueOrUnknown<State>.self, from: "waiting") // == .unknown("waiting") | |
| /// ``` |
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
| // | |
| // KeychainSecureStorage+SecureStorage.swift | |
| // | |
| import Foundation | |
| enum SecureStorageError: Error { | |
| case invalidKey | |
| case invalidValue | |
| case notFound(description: 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
| // | |
| // CountriesView.swift | |
| // | |
| import SwiftUI | |
| import Combine | |
| // MARK: Country | |
| struct Country: Identifiable, Hashable { |
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
| // | |
| // ContentOneViewModel.swift | |
| // | |
| import SwiftUI | |
| import Combine | |
| // MARK: ContentOneViewModel | |
| final class ContentOneViewModel: ObservableObject { |
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
| // | |
| // MyTabViewModel.swift | |
| // | |
| import Foundation | |
| import Combine | |
| final class MyTabViewModel: ObservableObject { | |
| @Published var selectedTab: MyTabView.Tab = .one |
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
| // | |
| // MyTabView.swift | |
| // | |
| import SwiftUI | |
| // MARK: MyTabViewModel | |
| final class MyTabViewModel: ObservableObject { |
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
| // | |
| // TableViewController.swift | |
| // | |
| import UIKit | |
| // ... | |
| final class TableViewController: UITableViewController { |
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
| // | |
| // TableViewController.swift | |
| // | |
| import UIKit | |
| // ... | |
| final class TableViewController: UITableViewController { |
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
| // | |
| // TableViewController.swift | |
| // | |
| import UIKit | |
| final class TableHeaderView: UIView { | |
| // ... |
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
| // | |
| // TableViewController+TableHeaderView.swift | |
| // | |
| import UIKit | |
| final class TableHeaderView: UIView { | |
| // ... |