Dialog view controller for iOS written in Swift