Swift package licenses: MIT and Apache-2.0
MIT covers 66.5% of the 11,025 Swift packages counted on 31 October 2026.
Free for one project and 100 votes. Paid plans start with a 14 day trial, no card.
The mix
MIT is on about two Swift packages in three.
MIT is on 4.8 times as many packages as Apache-2.0. Each row is the number of packages with that license and its share of the 11,025.
| License | Packages | Share |
|---|---|---|
| MIT | 7,333 | 66.5 |
| Apache-2.0 | 1,542 | 14.0 |
| No license | 935 | 8.5 |
| Not recognized | 642 | 5.8 |
| BSD-3-Clause | 215 | 2.0 |
| BSD-2-Clause | 64 | 0.6 |
| GPL-3.0 | 59 | 0.5 |
| Unlicense | 47 | 0.4 |
| MPL-2.0 | 38 | 0.3 |
| AGPL-3.0 | 26 | 0.2 |
| LGPL-3.0 | 23 | 0.2 |
| LGPL-2.1 | 21 | 0.2 |
| CC0-1.0 | 20 | 0.2 |
| Other licenses | 60 | 0.5 |
By year
MIT has stayed between 63.2 percent (2018) and 70.3 (2023) of each year's new packages.
The license mix has hardly moved since 2016.
Apache-2.0 has stayed between 11.3 percent (2019) and 16.7 (2016).
| Year | MIT | Apache | None |
|---|---|---|---|
| 2016 | 67.3 | 16.7 | 5.3 |
| 2017 | 66.1 | 14.9 | 9.1 |
| 2018 | 63.2 | 14.1 | 12.4 |
| 2019 | 67.3 | 11.3 | 11.9 |
| 2020 | 63.9 | 13.0 | 11.3 |
| 2021 | 67.3 | 14.6 | 7.9 |
| 2022 | 67.4 | 11.8 | 9.8 |
| 2023 | 70.3 | 13.5 | 6.9 |
| 2024 | 66.3 | 14.5 | 9.3 |
| 2025 | 64.0 | 15.6 | 8.9 |
| 2026 | 66.9 | 15.0 | 6.2 |
New packages
More packages were created in 2026 than in any year since 2016, and the year was not over when the list was read.
2026 has the most new packages, 1,648 by 31 October.
Across 2016 to 2026 the file counts 10,557 packages by year created, and the other 468 packages fall outside those rows.
| Year created | New packages |
|---|---|
| 2016 | 486 |
| 2017 | 704 |
| 2018 | 785 |
| 2019 | 637 |
| 2020 | 908 |
| 2021 | 852 |
| 2022 | 908 |
| 2023 | 1,150 |
| 2024 | 1,150 |
| 2025 | 1,329 |
| 2026 to 31 Oct | 1,648 |
Stars
4.7 percent of MIT packages and 5.6 percent of Apache-2.0 packages have 1,000 stars or more, against 0.2 percent of those with no license.
Of the five largest rows, no license has the fewest stars.
The median MIT package has 7 stars, the median Apache-2.0 package 9 and the median package with no license 2.
| License | Median | 1,000+ |
|---|---|---|
| MIT | 7 | 4.7% |
| Apache-2.0 | 9 | 5.6% |
| No license | 2 | 0.2% |
| Not recognized | 3 | 7.3% |
| BSD-3-Clause | 19 | 6.0% |
BSD
Add the two BSD licenses, 215 packages for BSD-3-Clause and 64 for BSD-2-Clause, and the four cover 9,154 packages, 83.0 percent.
MIT, Apache-2.0 and BSD cover 83.0% of packages.
BSD-2-Clause packages are few, but 9.4 percent of them have 1,000 stars or more, the highest share of any license in the file.
BSD-3-Clause has the highest median of the five largest rows, 19 stars, against 9 for Apache-2.0 and 7 for MIT. With 64 packages, the BSD-2-Clause share rests on a small base.
No clear license
935 packages have no license and 642 have one the host could not match, which is 1,577 packages, 14.3 percent.
One Swift package in seven has no clear license.
Among the five largest rows, packages with an unmatched license have the highest share at 1,000 stars or more. That share is 7.3 percent.
Their median is 3 stars, close to the median of 2 for packages with no license.
No license by year
From 2018 to 2020, between 11.3 and 12.4 percent of each year's new packages had no license.
Packages with no license peaked in 2018 at 12.4%.
Since 2023 the share has not passed 9.3 percent.
The lowest year is 2016 at 5.3 percent and the second lowest is 2026 at 6.2.
Copyleft
GPL-3.0 has 59 packages, AGPL-3.0 has 26, LGPL-3.0 has 23 and LGPL-2.1 has 21.
Copyleft licenses cover 129 packages, 1.2% of the list.
MIT packages outnumber the four together by about 57 to 1.
| License | Packages | Median | 1,000+ |
|---|---|---|---|
| GPL-3.0 | 59 | 5 | 1.7% |
| AGPL-3.0 | 26 | 2 | 3.8% |
| LGPL-3.0 | 23 | 1 | 0.0% |
| LGPL-2.1 | 21 | 2 | 0.0% |
Left out
One organization generated 237 packages in 2026, all Apache-2.0.
237 generated packages were left out of the counts.
They are 2.1 percent of the list and would have raised the Apache-2.0 share of 2026.
The file keeps them as one row marked left out, so a reader can add them back.
What is in the file
A share for each license
MIT, Apache-2.0, BSD, copyleft and no license, from 11,025 packages.
A view by year
The mix of new packages for each year from 2016 to 2026.
The small licenses too
GPL, AGPL, LGPL, MPL, Unlicense and CC0, each with its packages and stars.
The stars that go with each
The median stars and the share with 1,000 or more, for every license row.
No package names
The file holds counts, shares and medians only.
How the licenses were counted
One public list, read once.
Take the list
The 12,422 repositories of a public list of Swift packages were taken.
Read each repository
The license, stars, creation date, and whether it is archived or a fork were read on 31 October 2026, in batches of 50.
Drop three kinds
Archived packages and forks (1,160 in all) and the 237 generated packages were left out, which kept 11,025.
Keep counts only
Counts, shares and medians went into the CSV, and no names.
Which license a board package should carry
MIT is the default, on 7,333 packages, with Apache-2.0 on 1,542 and BSD-3-Clause on 215. A package with no license is on 935, and its median is 2 stars against 7 for MIT and 9.0 for Apache-2.0, so a missing license goes with a quiet project.
Copyleft is rare, at 129 packages in all. A package meant to be pulled into other people's apps does best with MIT or Apache-2.0, and with a license file that a host can read, since 642 packages carry one it could not match.
What these numbers leave out
- These are packages on one public list, not apps, and not advice on which license is right for you.
- A package without a license file counts as no license, even if its readme states terms.
- The host reads the license file, so a custom or combined license shows as not recognized.
- Archived packages and forks are left out, and so are 237 generated packages.
- Licenses with fewer than 20 packages are grouped as other. The medians of licenses with few packages rest on a small base.
- The year 2026 runs to 31 October. This is not legal advice.
Swift package license questions
Which license do most Swift packages use?
MIT, on 7,333 of 11,025 packages, which is 66.5 percent.
How common is Apache-2.0?
It is on 1,542 packages, 14.0 percent, so MIT is on 4.8 times as many.
How many Swift packages have no license?
935, which is 8.5 percent, as read on 31 October 2026.
Has the license mix changed?
Hardly. MIT stayed between 63.2 and 70.3 percent of each year of new packages.
Do packages with a license get more stars?
5.6 percent of Apache-2.0 packages reach 1,000 stars, against 0.2 percent with no license. That is not a cause.
How many Swift packages use a copyleft license?
129 of 11,025, which is 1.2 percent, across GPL-3.0, AGPL-3.0, LGPL-3.0 and LGPL-2.1.
How many have no clear license?
1,577, about one in seven: 935 with no license and 642 with one the host could not match.
Which license do the most popular packages use?
The file gives the share with 1,000 stars or more: 9.4 percent of BSD-2-Clause packages, 5.6 of Apache-2.0 and 4.7 of MIT.
Which year had the most new packages?
2026, with 1,648 by 31 October, ahead of 1,329 in 2025.
Does the file name any package?
No. It holds counts, shares and medians by license and by year.
May a site quote these figures?
Yes, with a link to this page and the read date, 31 October 2026. Any row of the CSV may be reused.
More Swift code, counted
More counts for Swift and iOS developers.
iOS feedback SDKs: 34 packages counted
Which feedback packages exist and how they are used.
CocoaPods, Swift Package Manager and Carthage
New Swift repositories by topic, 2013 to 2025.
NavigationStack, Observable and Swift Testing in GitHub
56 SwiftUI and Swift APIs counted in public files.
Swift packages in 2026: stars, pushes and setup counted
12,422 packages, one row each.
Which platforms and Swift versions Swift packages build on
1,367 sampled packages, from iOS to Linux and Android.
Swift Package.swift settings counted: exact and unsafeFlags
12 version rule and setting words counted.
GitHub topics of Swift packages, by year created
The topics of 11,025 Swift packages, by year.
What Swift packages with many stars have in common
12,422 packages, 18 setup checks, releases to license.
Collect feature requests in an iOS app
Your first board is free, with one project and 100 votes. The 14 day trial of Lite or Pro needs no card.