Fixed Swift enum placement and scoped public