If it's hot tomorrow, we plan to go swimming.

Literal

Tomorrow hot-if, we [topic-は] swimming [purpose-に] go intend-is.

暑ければ is the ~ば conditional of the i-adjective 暑い. 泳ぎに行く uses the purpose-marking に after the masu-stem 泳ぎ. Another conditional-intention pattern.