[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