Lego Mindstorms and Swiftplayground

hello i have been having trouble coding a line follower for a ev3 robot using swift code, I was wondering if anyone could help me code a dual line follower to follow a black line using swiftplaygrounds.