Question: I'm new in swift-ios. I'm studying [this](https://www.ralfebert.de/tutorials/ios-swift-uitableviewcontroller/)

when I'm trying to create cocoa file, 

> 
> import cocoa
> 
> 
> 

is giving error. 
I've searched in google and found cocoa class not work in ios-swift. it works in osx. 

So I'm not getting what'll I do now. Any help appreciated.

Answer: 
Cocoa is a framework for macOS. However, CocoaTouch is an umbrella module for iOS. To import the main module dependency for an iOS app, you use

```
import Foundation 

```

And to import the main UI module for an iOS app, you use

```
import UIKit

```
The term “Cocoa” has been used to refer generically to any class or object that is based on the Objective-C runtime and inherits from the root class, NSObject.