Skip to content

Instantly share code, notes, and snippets.

View funmia's full-sized avatar
💭
🥐

Funmi Adewodu funmia

💭
🥐
  • Stockholm
View GitHub Profile
@funmia
funmia / todoapi.md
Created November 24, 2018 20:21
sample urlsession call using https://jsonplaceholder.typicode.com
struct Todo: Decodable {
    let userId: Int
    let id: Int
    let title: String
    let completed: Bool
}

func getToDoItems(completionHandler: @escaping ([Todo]) -> Void) {

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

@funmia
funmia / Accessibility-and-UITesting.md
Last active December 10, 2020 14:55
Accessibility and UI Testing

Introduction

Accessibility ensures everyone regardless of their capabilities have a great experience using the app. This includes people with vision, motor, learning, or hearing disabilities.

Accessibility Attributes

These are the core attributes needed for supporting accessibility.

@funmia
funmia / design-lab-june2019.md
Created July 10, 2019 23:23
design-lab-june2019

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
@funmia
funmia / UIKonf2019.md
Created July 10, 2019 23:28
UIKonf2019 notes

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)