Change your preferences here.
Swift will always hit the opposing Pokémon, ignoring accuracy and evasion modifiers. It can also hit Pokémon who are Flying or Digging. Swift can miss, approximately 1 in 256 tries.