title: The error of Use of undeclared type 'CustomObject' in swift - ios
body: <p>I have this custom object in group called madel</p>
  
  <pre><code>import Foundation
  public class CustomObject
  {
    var Id:Int!
    init(id: Int){
      self.Id = id
    }
    var description: String {
      return "{ID=\(Id)}"
    }
  }
  </code></pre>
  
  <p>in another file, I have this struct, my purpose is to have a static list that can be modified or accessed from anywhere in the app:</p>
  
  <pre><code>struct Statics {
    static var listOfCustoms:[CustomObject] = []
  }
  </code></pre>
  
  <p>I got this error : 
  <a href="https://i.stack.imgur.com/faDsR.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/faDsR.png" alt="error"></a></p>
  
  <p>this is the whole error:</p>
  
  <p><a href="https://i.stack.imgur.com/kEkis.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/kEkis.png" alt="Error"></a></p>
  
  <p>Both files are added to the list of <em>Compile Sources</em> in the <em>Build Phases</em></p>