Stamina

Stamina is a separate attribute that only affects swimming.

Stamina is reduced gradually depending on how long you are swimming.

Stamina is further reduced when you are wearing heavy armor.

Stamina can be replenished by not swimming.

Once stamina has run out, the player will no longer be able to swim which may lead to drowning and eventually death.