Hack to get character delegate working in swift