Skip to content

Instantly share code, notes, and snippets.

View akbsteam's full-sized avatar

Andy Bennett akbsteam

View GitHub Profile
empty
empty slice
empty slice structure
empty slice structure dislocation
empty slice structure dislocation abandoned
empty slice structure dislocation abandoned concealed
empty slice structure dislocation abandoned concealed broken
empty slice structure dislocation abandoned concealed broken chaotic
empty slice structure dislocation abandoned concealed chaotic
empty slice structure dislocation abandoned broken
//: A UIKit based Playground for presenting user interface
import UIKit
import PlaygroundSupport
precedencegroup ForwardApplication
{
associativity: left
higherThan: AssignmentPrecedence
}
//: A UIKit based Playground for presenting user interface
import UIKit
import PlaygroundSupport
typealias Anim = (UIView) -> Void
typealias Func = () -> Void
precedencegroup ForwardComposition
{

Andy Bennett a veteran (20 years!!) digital developer; he’s been writing iOS apps for 7 years for the likes of Firef.ly, New Era and Unilever. Most recently specialised in location based services using Swift.

import Foundation
precedencegroup ForwardApplication
{
associativity: left
higherThan: AssignmentPrecedence
}
precedencegroup ForwardComposition
{
import Foundation
import UIKit
precedencegroup ForwardApplication
{
associativity: left
higherThan: AssignmentPrecedence
}
precedencegroup ForwardComposition
import Foundation
import AppKit
precedencegroup ForwardApplication
{
associativity: left
higherThan: AssignmentPrecedence
}
precedencegroup ForwardComposition
@akbsteam
akbsteam / UIViewGestureExtensions.swift
Last active August 19, 2022 11:41 — forked from loganwright/Readme.md
UIView Gesture Recognizer Extension For Swift
//
// The MIT License (MIT)
//
// Copyright (c) 2017 Andy Bennett (@akbsteam)
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
extension Bool {
public func trueSignal(or fail: Fail) -> Signal<Bool, Fail> {
guard self else { return Signal.failed(fail) }
return Signal.just(true)
}
}
extension Optional {
public func valueSignal(or fail: Fail) -> Signal<Wrapped, Fail>
{

Keybase proof

I hereby claim:

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

To claim this, I am signing this object: