begin work on porting to swift
port more stuff to swift
work on text view