Swift3 Using Unresolved Identifier 'Date'

I am trying to get Date in Swift3 using

let date = Date()

but it shows "error: using an unresolved identifier" Date "" How to solve it?

+4
source share
2 answers

It is allowed. is necessaryimport Foundation

+4
source

import doesn't work but import Foundation works great

Modules

case sensitive.

+3
source

Source: https://habr.com/ru/post/1659130/


All Articles