add a swift version of tagWriteView