Skip to content

Instantly share code, notes, and snippets.

View UglyBlueCat's full-sized avatar

Robin Spinks UglyBlueCat

View GitHub Profile

Keybase proof

I hereby claim:

  • I am uglybluecat on github.
  • I am uglybluecat (https://keybase.io/uglybluecat) on keybase.
  • I have a public key ASD8KSqBfg5TyOaTTBzf3jV0CIfOgpOu1OnzjBx6sF6wdAo

To claim this, I am signing this object:

@UglyBlueCat
UglyBlueCat / XCUIElement+GentleSwipe.swift
Created January 19, 2018 15:32
Recently I found that XCUIElement.swipeUp() was far too violent, swiping way past the element in the UI I wanted my test to tap, so I wrote an extension to XCUIElement that swiped gently using XCUIElement.press(forDuration:thenDragTo:)
//
// XCUIElement+GentleSwipe.swift
//
// Created by Robin Spinks on 11/10/2017.
//
import Foundation
import XCTest
extension XCUIElement
@UglyBlueCat
UglyBlueCat / FileHandler.swift
Last active June 2, 2017 15:43
Swift File Handling in TDD
class FileHandler {
enum FileHandlerError: Error {
case findPathError
case appendFolderError(_ : String)
case writeError(_ : String)
}
var fileURL : URL!