This is the probable correct answer. It was an inhumanly stupid act by the NP, by concluding WW2, to enact apartheid policies against other ethnic groups as which was done by Nazi Germany. Then again, Laws on Land Dispossession and Segregation was initiated in the 1800's by the British Dominion which acted on authority by the British Empire, although the provinces had its own legislation, these laws was authorised and enacted by the King and later by the King, the Senate and Union Assembly House.
The laws had a run-up,
http://www.sahistory.org.za/topic/list-laws-land-dispossession-and-segregation and many which was introduced by the NP, but the NP on election in 1948 enacted legislation already designed which preceded the then discriminatory legislation enacted under the British and “Boer” governments which was still enacted by the King’s Most Excellent Majesty. Long story short, both the Afrikaners and British peoples are guilty of these apartheid actions.
The Portuguese was here prior Jan van Riebeeck set up castle, personally I think they are glad to have left, knowing the history today. It was the Anglo-Boer War which ultimately brought an end to black independence in South Africa.