John Swinney was questioned on his government’s policies on single-sex spaces.