Skip to content

Instantly share code, notes, and snippets.

View StefanJager's full-sized avatar

Stefan Jager StefanJager

View GitHub Profile
@StefanJager
StefanJager / UIColor+Components.swift
Last active June 16, 2022 08:52
A more SWIFT-friendly approach to getting components from an UIColor
//
// UIColor+Components.swift
//
// Copyright (c) 2015 Stefan Jager
// 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 furnished to do so, subject to the following conditions:
@StefanJager
StefanJager / Reachability+MobileDataConnectionType.swift
Last active June 23, 2016 19:05
An extension of Apple's Reachability to determine the type of WWAN connection.
//
// Reachability+MobileDataConnectionType.swift
//
// Copyright (c) 2015 Stefan Jager
// 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 furnished to do so, subject to the following conditions: