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: Lockdown-Violating Underground Gatherings Investigated Over Recent Spate of San Jose Shootings
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.

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.

READ MORE: The Game Changer: New Test Helps Doctors Find Hidden Prostate Cancer

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: Oakley School Board Interim Trustees Vote to Fill Vacant Seats; Reject Special Election

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