Skip to content

Instantly share code, notes, and snippets.

View caioberkley's full-sized avatar
🤠
howdy

Caio Berkley caioberkley

🤠
howdy
View GitHub Profile
@caioberkley
caioberkley / UITextViewPlaceholder.swift
Last active January 30, 2019 18:04 — forked from tijme/UITextViewPlaceholder.swift
The correct way to implement a placeholder in a UITextView (Swift) - Updated to Swift 4.2
//
// 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