Skip to content

Instantly share code, notes, and snippets.

View KrisRJack's full-sized avatar
💡
"Here’s to the crazy ones..." – Steve Jobs, 1997

Kristopher Jackson KrisRJack

💡
"Here’s to the crazy ones..." – Steve Jobs, 1997
View GitHub Profile
@lopspower
lopspower / README.md
Last active March 10, 2025 08:42
Hexadecimal color code for transparency

Hexadecimal color code for transparency

Twitter

How to set transparency with hex value ?

For example, you want to set 40% alpha transparence to #000000 (black color), you need to add 66 like this #66000000.

Download This sample on Google Play Store

@mats-claassen
mats-claassen / MyPickerRow
Created September 12, 2016 14:04
A custom picker row for Eureka to select a time (hours, minutes and seconds)
public struct Time: Equatable {
var hours: Int
var minutes: Int
var seconds: Int
}
public func ==(lhs: Time, rhs: Time) -> Bool {
return lhs.hours == rhs.hours && lhs.minutes == rhs.minutes && lhs.seconds == rhs.seconds
}
//
// BottomSheetView.swift
//
// Created by Majid Jabrayilov
// Copyright © 2019 Majid Jabrayilov. All rights reserved.
//
import SwiftUI
fileprivate enum Constants {
static let radius: CGFloat = 16