Fix swift error, use rawValue instead.

'UITextAutocapitalizationType' does not have a member named 'toRaw'