merge SetDirection ios-shared.