79183564

Date: 2024-11-13 05:57:48
Score: 0.5
Natty:
Report link

I think enum is used as a type of property of models. So defining in model's file is best, I think.

// Post.swift
struct Post {
  id: String
  status: PublishStatus;
}

enum PublishStatus {
    case draft     
    case published  
    case archived 
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Takuya Matsuda