Ad
  • Custom User Avatar

    I guess I'm not seeing what that link is telling me. Thanks for taking the time to comment though, I'll just find a different solution.

  • Custom User Avatar

    The "creator" has forbidden nothing. Read this to see Codewars Swift: https://docs.codewars.com/languages/swift.

  • Custom User Avatar

    Working on this in swift, works correctly in my Xcode playground but I'm getting this error here:

    solution.swift:18:25: error: 'DateComponentsFormatter' is unavailable: Not supported in swift-corelibs-foundation
            let formatter = DateComponentsFormatter()
                            ^~~~~~~~~~~~~~~~~~~~~~~
    Foundation.DateComponentsFormatter:2:12: note: 'DateComponentsFormatter' has been explicitly marked unavailable here
    open class DateComponentsFormatter : Formatter
    

    So did the creator really just say "nope they can't use this already built in tool that would be perfect for this"??

    Or am I missing something? I've imported Foundation at the top of my code but that didn't help...