How to achieve similar layout to 365 Scores app in Swift? (Screenshot included)

Viewed 36

I tried to achieve the below layout with a single tableviewbut failed.

The structure of the below screenshot is as follows:

  • Date (Today):
    • My subscribed lists (My Teams & Games):
      • League name:
        • Actual match (Looks like a Tableview cell)

Please note that each level of the structure is dynamic in count depending on the matches of the day.

I tried implementing this with a tableview but couldn't figure out how to create nested sections. For example, at the top level I tried to make the sections headerView to represent the date but then I was forced to make the rest of the strucure inside a cell which is not the case for the app in the screenshot.

I am assuming the actual matches are the tableview cells since they are the ones that are swipe-able?

Please help me with some ideas.

Thanks.

enter image description here

1 Answers

There are various ways to approach this... here are just two ideas:

enter image description here

enter image description here

As was mentioned in the comments on your other question - you really need to start working on it. If you run into specific problems, come back here with specific questions.

Related