Skip to content

Instantly share code, notes, and snippets.

Avatar

Jörn Schoppe pixeldock

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