Skip to content

Instantly share code, notes, and snippets.

Lucas Paul L4grange

Block or report user

Report or block L4grange

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
L4grange / FadeView.swift
Last active Mar 26, 2020
Fade a UIView in ios using Gradient (Swift Extension)
View FadeView.swift
/// With this extension you can call .fadeView(style: ) on any view to create a fading effect.
/// Very useful when trying to fade a UIScrollView, UITableView or UICollectionView
/// This way also takes care of the "white or black" transparent gradient that happens as described here:
/// This solution is a swift implementation of the following stackoverflow question in Swift, adding more styles:
extension UIView {
enum UIViewFadeStyle {
case bottom
L4grange /
Last active Sep 27, 2019 — forked from rosterloh/
Android class for GPIO control
This class allows you to control GPIO pins form android, by abstracting the command line excecution into a java class.
IMPORTANT NOTE: Requires root to run, since it is required to write to GPIO ports in /sys/class/gpio/
public class GPIO {
You can’t perform that action at this time.