SAN FRANCISCO (CBS SF) — Suzy Loftus was officially sworn in as interim San Francisco District Attorney on Saturday in a controversial move weeks before an election to succeed outgoing district attorney George Gascon.

Mayor London Breed announced earlier this month that she would appoint Loftus to replace Gascon, who stepped down while considering a run for Los Angeles District Attorney.

READ MORE: SF Restaurant Apologizes for Denying Service to Armed, On-Duty Police Officers

Suzy Loftus, London Breed

S.F. mayor London Breed (right) swears in Suzy Loftus as interim district attorney on Oct. 19, 2019. (Photo courtesy of Suzy Loftus via Twitter)

Breed swore Loftus in during a ceremony Saturday morning at the district attorney’s office.

READ MORE: International Travelers Brace For New COVID Testing Requirement

Loftus is a candidate in the upcoming election on Nov. 5. She is a former prosecutor and was president of the city’s police commission.

Her opponents and protesters have criticized the interim appointment, accusing Breed of trying to tilt the election to Loftus.

Loftus is running against Chesa Boudin, an attorney in the San Francisco’s Public Defender’s Office, and prosecutors Nancy Tung and Leif Dautch, who have both worked in the state Attorney General’s Office.

MORE NEWS: Northbound San Tomas Expressway in Santa Clara Closed by 'Major Injury' Accident

© Copyright 2019 CBS Broadcasting Inc. and Bay City News. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed