You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/PackageManagerDocs/Documentation.docc/IntroducingPackages.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -4,17 +4,17 @@ Learn to create and use a Swift package.
4
4
5
5
## Overview
6
6
7
-
A package consists of Swift source files, including the `Package.swift` manifest file.
7
+
A package consists of a `Package.swift` manifest file along with source files, resources, and other assets.
8
8
The manifest file, or package manifest, defines the package's name and its contents using the PackageDescription module.
9
9
10
10
Each package declares `Products`, a list of what the package produces.
11
11
Types of products include libraries, executables, and plugins:
12
12
13
-
- A library defines a module that can be imported by other Swift code.
13
+
- A library defines a module that can be imported by other code.
14
14
- An executable is a program that can be run by the operating system.
15
15
- A plugin is executable code that the Swift Package Manager may use to provide additional commands or build capabilities.
16
16
17
-
The package can also declare `Dependencies`, most frequently other swift packages that provide modules you use.
17
+
The package can also declare `Dependencies`, most frequently other Swift packages that provide modules you use.
18
18
Dependencies can also provide macros, plugins, or reference system or binary (non-source) dependencies.
19
19
20
20
Each product is made up of one or more `Targets`, the basic building block of a Swift package.
@@ -27,7 +27,7 @@ Swift organizes code into _modules_.
27
27
Each module specifies a namespace and enforces access controls on which parts of that code can be used outside of that module.
28
28
29
29
A program may have all of its code in a single module, or it may import other modules as _dependencies_.
30
-
Aside from the handful of system-provided modules, such as Darwin on OS X or GLibc on Linux, most dependencies require code to be downloaded and built in order to be used.
30
+
Aside from the handful of system-provided modules, such as Darwin on macOS or Glibc on Linux, most dependencies require code to be downloaded and built in order to be used.
31
31
32
32
Extracting code that solves a particular problem into a separate module allows for that code to be reused in other situations.
33
33
For example, a module that provides functionality for making network requests could be shared between a photo sharing app and a program that displays the weather forecast.
0 commit comments