Swift implementation of the Float Label Design Pattern from Matt D. Smith