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
// A simple custom modifier, with autocompleting locale identifiers, to easily preview localized views | |
struct ViewLocale: ViewModifier { | |
enum Identifier: String { | |
case english = "en" | |
case french = "fr" | |
case polish = "pl" | |
} | |
let localeIdentifier: Identifier |
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 | |
import MyFramework | |
final class DataUseCaseComposer: DataUseCaseOutput { | |
let outputs: [DataUseCaseOutput] | |
public init(_ outputs: [DataUseCaseOutput]) { | |
self.outputs = outputs | |
} |