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
enum LoginScreenModule: ScreenModule { | |
enum Action: Equatable { | |
case didUpdateUsername(String) | |
case didUpdatePassword(String) | |
case didTapLogin | |
} | |
enum Output: Equatable { | |
case userDidLogin |
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
/* | |
| multi-line | |
| comment, with empty lines | |
| see: https://ww.com | |
*/ | |
open class Blah: NSObject { | |
enum EmbedError: Error { |
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
let pageIndex = 2 | |
// base url | |
var components = URLComponents(string: "https://hostname.com/path") | |
// build query items as a String: String dictionary (easire to deal with that URLQueryItems) | |
var items: [String: String] = ["page": "\(pageIndex)", "message": "Hi mom & family!"] | |
items["fields"] = "_id,versionId,sourceType,name,_displayName,points" |