struct Todo: Decodable {
let userId: Int
let id: Int
let title: String
let completed: Bool
}
func getToDoItems(completionHandler: @escaping ([Todo]) -> Void) {- https://www.raywenderlich.com/709-ios-unit-testing-and-ui-testing-tutorial
- https://medium.com/flawless-app-stories/applying-unit-tests-to-mvvm-with-swift-ba5a79df8a18
- https://www.swiftbysundell.com/posts/reducing-flakiness-in-swift-tests
- https://medium.com/cocoaacademymag/unit-testing-uiview-with-nimble-snapshot-651a7c5a5e93
- https://medium.com/cocoaacademymag/unit-testing-parsing-a-json-response-b694a1b669ff
- https://medium.com/cocoaacademymag/unit-testing-uitableview-2387f3a42b4f
- http://adamborek.com/rxtests-rxactionsheet/
URLSession is a networking API provided by Apple that's used to download HTTP content from the web.
- https://developer.apple.com/documentation/foundation/urlsession
- https://fluffy.es/nsurlsession-urlsession-tutorial/
- https://gist.github.com/cmoulton/7ddc3cfabda1facb040a533f637e74b8
- https://www.raywenderlich.com/567-urlsession-tutorial-getting-started
- https://medium.com/ios-os-x-development/real-world-example-fetch-json-using-nsurlsession-and-populate-a-uitableview-3e5d84c87e68
- https://leanpub.com/iosappswithrest/read_sample
Objects for working with Date in Swift's Foundation framework:
-
Date: This is a struct that represents a specific point in time independent of any calendar or time zone. It has methods for creating dates, comparing dates and calculating time intervals between dates. It is not responsible for the date format or conversions between string and date.
-
DateFormatter: It provides methods for converting Date to String and String to Date. You can customise the date string using predefined styles in DateFormatter.Style or create your own custom format.
-
DateComponents: This is a Date or Time object represented in units such as the year, month, day, minute or hour in a particular calendar. It provides direct access to different parts of a date or time.
Resources
Accessibility ensures everyone regardless of their capabilities have a great experience using the app. This includes people with vision, motor, learning, or hearing disabilities.
These are the core attributes needed for supporting accessibility.
Inclusive design:
- Are we excluding users?
- Government empathy lab ?
- Check drop off rate of users using the app with accessibility features. e.g funnels
- Running workshops/user groups on accessibility.
- A web apart (book)
- Find out if there are any queries to customer support/ front-line staff
- usertesting.com
Uikonf 2019
Rolling your own network stack
APIRouter NetworkOperation
iOS testing
- Testing pyramid by Martin Fowler: UI, Service and Unit tests.
- Tools: Embassy(http server), Ambassador(web framework)
- https://ryanstutorials.net/bash-scripting-tutorial/#outline
- https://www.taniarascia.com/how-to-create-and-use-bash-scripts/
- https://www.learnshell.org/en/Variables
- https://www.codecademy.com/learn/learn-the-command-line/modules/bash-scripting
- https://developer.apple.com/library/archive/documentation/OpenSource/Conceptual/ShellScripting/shell_scripts/shell_scripts.html