Skip to content

Instantly share code, notes, and snippets.

View theoriginalbit's full-sized avatar

Joshua Asbury theoriginalbit

View GitHub Profile
import Foundation
enum TargetEnum: Decodable {
case first(SomeObject)
case second(OtherObject)
enum CodingKeys: CodingKey {
case type
}
@theoriginalbit
theoriginalbit / UITextViewPlaceholder.swift
Created December 14, 2019 21:23 — forked from tijme/UITextViewPlaceholder.swift
The correct way to implement a placeholder in a UITextView (Swift)
//
// UITextViewPlaceholder.swift
// TextViewPlaceholder
//
// Copyright (c) 2017 Tijme Gommers <[email protected]>
//
// 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
//
// CircularProgressBar.swift
//
// Created by Joshua Asbury on 29/9/18.
// Copyright © 2018 Joshua Asbury. All rights reserved.
//
import UIKit
@IBDesignable public class CircularProgressBar: UIView {