Git Product home page Git Product logo

Comments (8)

reallyseth avatar reallyseth commented on May 27, 2024

One more note. I'm wondering if the way carthage is building the framework, or something on my end, is not including the DataStructures.swift file. I tried initializing a region and am seeing this error as well.

screen shot 2015-12-01 at 8 28 27 pm

from swiftdate.

kohdesmond avatar kohdesmond commented on May 27, 2024

+1

To add in @reallyseth 's question,
let romeRegion = Region(calType: CalendarType.Gregorian, tzType: TimeZoneNames.Europe.Rome)
return an error of 'Region' cannot be constructed because it has no accessible initializers

from swiftdate.

malcommac avatar malcommac commented on May 27, 2024

Should be fixed in 2.0.2. Let me know if it works for you. 7cca2a3

from swiftdate.

reallyseth avatar reallyseth commented on May 27, 2024

Fixed. Thank you so much!

from swiftdate.

malcommac avatar malcommac commented on May 27, 2024

No problem, thank you for your report :)

from swiftdate.

pvels avatar pvels commented on May 27, 2024

same problem in 3.0.8. Or it not problem?

from swiftdate.

Hout avatar Hout commented on May 27, 2024

There is no defaultRegion() func anymore.
You can use Region() to get the default region but you cannot set it. Rationale is to have just one default region that represents the current calendar, time zone and locale.

If you want to use alternate regions then you should specify them and not make them the default. Thus preventing misunderstandings.

from swiftdate.

pvels avatar pvels commented on May 27, 2024

Thanks for answer :)

from swiftdate.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.