title: why am I getting (self: ) when I make function?
body: <pre><code>struct StoryBrain {
      var storyNumber = 0
  
  
      let Allstory = [
          Story(s: "There is a fork on the road", c1: "Take a left", c2: "Take a right"),
          Story(s: "There are two door", c1: "Enter the left door", c2: "Enter the Right door"),
          Story(s: "You can have either a dog or a cat", c1: "I will have a dog", c2: "I will have a cat")
      ]
  
      func getStory() -&gt;String {
          return Allstory[storyNumber].mainStory
      }
      func getchoice1() -&gt; String {
          return Allstory[storyNumber].choice1
      }
      func getchoice2() -&gt; String {
          return Allstory[storyNumber].choice2
      }
  </code></pre>
  
  <p>This is Model</p>
  
  <p>in view controller, I want to make updateUI function</p>
  
  <pre><code>func updateUI() {
      storyLabel.text = StoryBrain.getStory(self: StoryBrain)
  </code></pre>
  
  <p>I do not understand why I am getting (self: StoryBrain) instead of just ().</p>