Skip to content

Instantly share code, notes, and snippets.

View jofvr's full-sized avatar

Jordan Favray jofvr

  • France
View GitHub Profile
@jofvr
jofvr / UITextViewPlaceholder.swift
Last active March 24, 2021 15:48 — forked from tijme/UITextViewPlaceholder.swift
The correct way to implement a placeholder in a UITextView (Swift) + without delegate + Swift 4 AND correct bug on place holder
//
// UITextViewPlaceholder.swift
// TextViewPlaceholder
//
// Original Copyright (c) 2017 Tijme Gommers <tijme@finnwea.com>
// Modified Copyright (c) 2017 Jordan Favray <j.favray@free.fr>
//
// 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