title: Resolve circular dependency in Swift
body: <p>Let's say I have 2 classes that both need each other.</p>
  
  <pre><code>class LoginInteractor {
  
       let userInteractor: UserInteractor
  
       init(userInteractor: UserInteractor) {
          self.userInteractor = userInteractor
       }
  
  }
  
  class  UserInteractor {
      let loginInteractor: LoginInteractor
  
      init(loginInteractor: LoginInteractor) {
          self.loginInteractor = loginInteractor
       }
  }
  </code></pre>
  
  <p>If I try this ( let loginInteractor = LoginInteractor() ) I would get a circular dependency. How do I solve this issue?</p>