title: How to Implement Custom Calendar in SwiftUI?
body: <p>I need to use custom calendar instead of <code>SwiftUI</code> <code>DatePicker</code>. For this purpose I added <code>pod 'KDCalendar', '~&gt; 1.8.9'</code> in the <code>Podfile</code> after that <code>MyCalendar</code> structure created as following:</p>
  
  <pre><code>import SwiftUI
  import KDCalendar
  
  public struct MyCalendar: UIViewRepresentable {
  
      public func makeUIView(context: Context) -&gt; CalendarView {
          return CalendarView()
      }
  
      public func updateUIView(_ calendar: CalendarView, context: Context) {
          let date: Date = Date()
          calendar.selectDate(date)
      }
  }
  </code></pre>
  
  <p>When I'm going to use it in any stack it's shows only the week name and other parts of the calendar omitted from view and following errors occurred:</p>
  
  <p><a href="https://i.stack.imgur.com/L25xJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/L25xJ.png" alt="enter image description here"></a></p>
  
  <pre><code>[Assert] negative or zero item sizes are not supported in the flow layout
  </code></pre>
  
  <p>Your cooperation highly expected to resolve this issue.</p>