More Swift code