Javascript developer here learning Swift. Normally in my JS projects I would have a nested object available as a helper for set variables and properties like this:
export const breakPoint = {
mobile: 544,
tablet: 768,
laptop: 992,
desktop: 1200,
desktop_xl: 1400,
nestedData: {
data: "example"
}
}
Pretty simple right, and I can import it into other files and then use like
breakPoint.mobile
I'm at a loss as to how to use a similar concept in Swift. Do I use Dictionaries or Tuples? Struct and initialize it?
Thank you in advance!