Feature/fix swift gen

* added sample SMC codes to `sample_dsl` dir.
* fix: compile sample SMC codes for swift.

Please check and merge!