I could be wrong (haven’t tested, but my impression is that only components you explicitly request in the option set passed to calendar.components will be non-nil.
> On Jun 22, 2016, at 9:49 AM, Eric Miller via swift-users > <[email protected]> wrote: > > I'm working on migrating from Swift 2.3 to Swift 3.0. > > Sometimes I can't get as much info about a change as I like. I'm aware of the > swift-evolution github repo and can search that. Swift.org's migration guide > is also really helpful. > > I'm now trying to find why, along with changing from NSCalendar to Calendar, > the .components are optional. I can't find any mention of it, and I'm not > sure in what situation minutes or hours could be nil and how I should guard > against it. > > Is there a way to search the evolution mailing list, or is there a better > place to search? > _______________________________________________ > swift-users mailing list > [email protected] > https://lists.swift.org/mailman/listinfo/swift-users _______________________________________________ swift-users mailing list [email protected] https://lists.swift.org/mailman/listinfo/swift-users
