Skip to content

Instantly share code, notes, and snippets.

View pixeldock's full-sized avatar

Jörn Schoppe pixeldock

View GitHub Profile
@pixeldock
pixeldock / ViewController.swift
Last active March 11, 2018 20:33
Generic UIViewController with horizontal UIScrollView that was created programatically with Auto Layout using SnapKit
//
// ViewController.swift
// HorizontalScrollView
//
// Created by Jörn Schoppe on 13.04.16.
// Copyright © 2016 pixeldock. All rights reserved.
//
import UIKit
import SnapKit
@pixeldock
pixeldock / ViewControllerWithVerticalScrollView.swift
Last active August 14, 2018 00:47
A ViewController with a vertical ScrollView using AutoLayout to position the scrolled subviews
//
// ViewControllerWithVerticalScrollView.swift
// VerticalScrollViewAL
//
// Created by Jörn Schoppe on 12.08.18.
// Copyright © 2018 Jörn Schoppe. All rights reserved.
//
import UIKit
@pixeldock
pixeldock / XCTestCase+UITestUtils.swift
Created October 15, 2018 12:43
Helper methods to open ControlCenter and NotificationCenter from Xcode UITests
import XCTest
extension XCTestCase {
var springboard: XCUIApplication {
return XCUIApplication(bundleIdentifier: "com.apple.springboard")
}
func closeApp() {
XCUIDevice.shared.press(XCUIDevice.Button.home)
}