updated enum to NS_ENUM

Better practice and Swift support