Coco Gauff said she decided to adapt her forehand during the match to reduce her errors and had to be resilient against world number two Iga Swiatek.