Add solution for Swift.