For fixed fare busses, you only swipe when hopping on. Signs next to the door of the bus will inform you which type of bus you are hopping on.
On flexible fare busses you swipe hopping on AND before you get off. You might have to get on the bus through the front or the middle door. Check the icon next to the door or just follow the crowd!