Animated Preferences Panel in Swift