main.swift535 chars14 lines
This extension adds a snakeCaseToCamelCase
method to String
class in Swift. It splits the string into components using underscore as the separator, capitalizes each component, and then joins them together. Finally, it converts the first character to lowercase to match the camel case convention.
gistlibby LogSnag