Skip to content
GuidesChecked 20 November 2026

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.

Packages by license
LicensePackagesShare
MIT7,33366.5
Apache-2.01,54214.0
No license9358.5
Not recognized6425.8
BSD-3-Clause2152.0
BSD-2-Clause640.6
GPL-3.0590.5
Unlicense470.4
MPL-2.0380.3
AGPL-3.0260.2
LGPL-3.0230.2
LGPL-2.1210.2
CC0-1.0200.2
Other licenses600.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).

Share of new packages by license
YearMITApacheNone
201667.316.75.3
201766.114.99.1
201863.214.112.4
201967.311.311.9
202063.913.011.3
202167.314.67.9
202267.411.89.8
202370.313.56.9
202466.314.59.3
202564.015.68.9
202666.915.06.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.

Packages by year created
Year createdNew packages
2016486
2017704
2018785
2019637
2020908
2021852
2022908
20231,150
20241,150
20251,329
2026 to 31 Oct1,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.

Stars by license
LicenseMedian1,000+
MIT74.7%
Apache-2.095.6%
No license20.2%
Not recognized37.3%
BSD-3-Clause196.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.

Copyleft licenses
LicensePackagesMedian1,000+
GPL-3.05951.7%
AGPL-3.02623.8%
LGPL-3.02310.0%
LGPL-2.12120.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.

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.