Home > Software design >  Seeking alternative ways to have different headers in an array of arrays in Swift
Seeking alternative ways to have different headers in an array of arrays in Swift

Time:04-03

I have a program that fully works except I was given a note about something that needed changed.

This program contains an array of arrays. In the app each section has a different header. The header names are in a separate array called "myTitles". The user wants the headers to not be using any override methods. How do I change this? The way I have it is the only way I have ever done it.

I was told; "The title (headers) should be a string."

Array of Arrays code (for reference):

var emojis: [[Emoji]] = [
            
            [Emoji(symbol: "           
  • Related