title: In SwiftUI is there any problem to put subview in function in places of structs?
body: <p>In some cases, the struct design in heavier than func design, for little subviews.
  But is there any problem to use functions rather than structs?</p>
  <p>Eg:</p>
  <pre><code>func ƒText(_ text: String, fontSize: CGFloat = 13) -&gt; some View {
      Text(text)
          .font(.system(size: fontSize))
  }
  </code></pre>
  <p>compared to:</p>
  <pre><code>struct sText: View {
      let text: String
      let fontSize: CGFloat
      init(_ text: String, fontSize: CGFloat = 13) {
          self.text = text ; self.fontSize = fontSize
      }
      var body: some View {
          Text(text)
              .font(.system(size: fontSize))
      }
  }
  </code></pre>