Skip to content

Instantly share code, notes, and snippets.

@hmane
hmane / UITextViewPlaceholder.swift
Created September 25, 2017 23:14 — forked from tijme/UITextViewPlaceholder.swift
The correct way to implement a placeholder in a UITextView (Swift)
//
// UITextViewPlaceholder.swift
// TextViewPlaceholder
//
// Copyright (c) 2017 Tijme Gommers <tijme@finnwea.com>
//
// 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
@hmane
hmane / Circle.html
Last active August 29, 2015 14:06
Circle
<style>
.circle {
width: 100px;
height: 100px;
border-radius: 50px;
font-size: 20px;
color: #fff;
line-height: 100px;
text-align: center;
background: #000;