Skip to content

Instantly share code, notes, and snippets.

Frikish / SwipeRefreshLayout and
Last active February 23, 2017 08:57
SwipeRefreshLayout with StickyListHeaders
View SwipeRefreshLayout and

Trying to find a solution

I had a problem getting the new fancy SwipeRefreshLayout from the appcompat lib to work with a custom listview, in this case the StickyListHeaders. Since the First child of the SwipeRefreshLayout should be either a ScrollView or a pure List, some workaround had to be done.

Frikish / HTMLColors.swift
Created November 6, 2015 09:33
HTML Color Names easy in a Swift File
View HTMLColors.swift
import Foundation
public struct HTMLColors {
public static let colors: [String : String] = [
"aliceblue" : "#f0f8ff",
"antiquewhite" : "#faebd7",
"aqua" : "#00ffff",
"aquamarine" : "#7fffd4",
"azure" : "#f0ffff",
"beige" : "#f5f5dc",