• About
  • Reference
  • Integrations
  • API
  • Blog
  • About
  • Reference
  • Integrations
  • API
  • Blog
Swift Syntax Reference
  • Feedback
  • Java
  • C
  • C++
  • C#
  • Python
  • Ruby
  • JavaScript
  • Swift
  • Go
Languages
    • User Program Communication
      • Print
      • Commenting
      • Import Module
    • Variables
      • Variable Declaration
      • Constants
      • Optionals
      • Arrays
      • Dictionaries
      • Sets
      • Enumerations
    • Control Flow
      • If Statement
      • Switch Case
      • For In Loop
      • While Loop
      • Repeat-While Loop
      • Ternary Operator
    • Functions
      • Functions
      • Closures
      • Map
    • Object Oriented Programming
      • Structures
      • Class Declaration
      • Access Modifiers
      • Initializer
      • Instantiation
      • Type Methods
      • Properties
      • Getters and Setters
      • Inheritance
Categories
Language
Swift
  • Java
  • C
  • C++
  • C#
  • Python
  • Ruby
  • JavaScript
  • Swift
  • Go
Version: 4

Categories

  • User Program Communication
    • Print
    • Commenting
    • Import Module
  • Variables
    • Variable Declaration
    • Constants
    • Optionals
    • Arrays
    • Dictionaries
    • Sets
    • Enumerations
  • Control Flow
    • If Statement
    • Switch Case
    • For In Loop
    • While Loop
    • Repeat-While Loop
    • Ternary Operator
  • Functions
    • Functions
    • Closures
    • Map
  • Object Oriented Programming
    • Structures
    • Class Declaration
    • Access Modifiers
    • Initializer
    • Instantiation
    • Type Methods
    • Properties
    • Getters and Setters
    • Inheritance

User Program Communication

Import Module in Swift

Used to import a module with pre-defined functions, constants, and classes.


Syntax
import moduleName

Notes

Many modules are included in Swift, but they can also be imported.


Example
import UIKit

Add to Slack

< Commenting   |   Variable Declaration >

© 2019 SyntaxDB. All Rights Reserved.