Skip to content

Instantly share code, notes, and snippets.

View JAIRMG's full-sized avatar
🎯
Focusing

Jair M Gaspar JAIRMG

🎯
Focusing
  • Flixbus
  • Berlin, Germany
View GitHub Profile
import UIKit
class ScrollViewController: UIViewController {
let scrollView: UIScrollView = {
let scrollView = UIScrollView()
scrollView.translatesAutoresizingMaskIntoConstraints = false
scrollView.backgroundColor = .lightGray
return scrollView
}()
import UIKit
class ScrollViewController: UIViewController {
let scrollView: UIScrollView = {
let scrollView = UIScrollView()
scrollView.translatesAutoresizingMaskIntoConstraints = false
scrollView.backgroundColor = .lightGray
return scrollView
}()
@JAIRMG
JAIRMG / ScrollViewController.swift
Last active December 17, 2019 03:21
Scroll view with the first element
import UIKit
class ScrollViewController: UIViewController {
let scrollView: UIScrollView = {
let scrollView = UIScrollView()
scrollView.translatesAutoresizingMaskIntoConstraints = false
scrollView.backgroundColor = .lightGray
return scrollView
}()
@JAIRMG
JAIRMG / ScrollViewController.swift
Created December 17, 2019 03:20
Scroll view controller example finished
import UIKit
class ScrollViewController: UIViewController {
let scrollView: UIScrollView = {
let scrollView = UIScrollView()
scrollView.translatesAutoresizingMaskIntoConstraints = false
scrollView.backgroundColor = .lightGray
return scrollView
}()
@JAIRMG
JAIRMG / feed-case-study-test-api-feed.json
Created February 9, 2021 04:25
File for Essential Feed E2E Tests
{
"items": [
{
"id": "73A7F70C-75DA-4C2E-B5A3-EED40DC53AA6",
"description": "Description 1",
"location": "Location 1",
"image": "https://url-1.com",
},
{
"id": "BA298A85-6275-48D3-8315-9C8F7C1CD109",