chat room writing with swift.