LWF sample code for UIKit