contestada

What is the function of the gerund in the sentence below?
Kayleen enjoys learning all about ancient Greece.
O
subject
O
subject complement
-
O
direct object
-
O indirect object
1 O object of a prepoſition