[swift/en] Add more code examples, update some code and comments

- add another Switch example
- add more complex func example
- fix playground error
- add another casting example