Abstract: An electronic device is provided which includes a housing, a display, a camera, a memory, and a processor. The camera includes a lens barrel, a first rotary member including a first rotary shaft and a first contact part, a second rotary member including a second rotary shaft and a second contact part, a frame, and a control circuit. The first rotary member rotates about the first rotary shaft in a first direction by driving a first actuator, one end of which is coupled to the first rotary shaft and an opposite end of which contacts the first contact part, and the second rotary member rotates about the second rotary shaft in a second direction that is substantially perpendicular to the first direction by driving a second actuator, one end of which is coupled to the second rotary shaft and an opposite end of which contacts the second contact part.