There are two kinds of swaps, a swap can happen on the source chain, in this case, it is atomic. If the swap needs to happen on the destination chain, e.g. because the token you want to get is not bridgeable itself, then the swap happens delayed, after the bridging is done.