swift:class enum