How to initialize a colour from a raw value in swiftUI
The below code when initialized with a raw value returns NamedColor(name: “colorName” bundle:nil) with colourName being the name of the case in the enum and the raw value being passed in being the sting representation of the colour eg “oxblood” when trying to access mainColor. All colours are currently present in my assets folder.
How to initialize a colour from a raw value in swiftUI
The below code when initialized with a raw value returns NamedColor(name: “colorName” bundle:nil) with colourName being the name of the case in the enum and the raw value being passed in being the sting representation of the colour eg “oxblood” when trying to access mainColor. All colours are currently present in my assets folder.
How to initialize a colour from a raw value in swiftUI
The below code when initialized with a raw value returns NamedColor(name: “colorName” bundle:nil) with colourName being the name of the case in the enum and the raw value being passed in being the sting representation of the colour eg “oxblood” when trying to access mainColor. All colours are currently present in my assets folder.
How to initialize a colour from a raw value in swiftUI
The below code when initialized with a raw value returns NamedColor(name: “colorName” bundle:nil) with colourName being the name of the case in the enum and the raw value being passed in being the sting representation of the colour eg “oxblood” when trying to access mainColor. All colours are currently present in my assets folder.
How to initialize a colour from a raw value in swiftUI
The below code when initialized with a raw value returns NamedColor(name: “colorName” bundle:nil) with colourName being the name of the case in the enum and the raw value being passed in being the sting representation of the colour eg “oxblood” when trying to access mainColor. All colours are currently present in my assets folder.