According to 18.04 Bionic Beaver release notes:
For new installs, a swap file will be used by default instead of a swap partition.
Changes since 16.04
What will happen to the existing swap partition after the scheduled upgrade in July from my current Ubuntu 16.04 to Ubuntu 18.04? Will it still exist? If so, will it be used, or just take up dormant space?
For distribution upgrades, the existing swap partition will be reused instead of creating a new swap file. In your case the existing swap partition from 16.04 will remain unchanged and be reused in 18.04.
For an explanation about the differences between a swap file and a swap partition see this answer.