From 1786b38d1b72ea6adf8607021cf248cc7edd1e2f Mon Sep 17 00:00:00 2001 From: Felipe Imperio Date: Wed, 13 Nov 2024 16:12:08 -0800 Subject: [PATCH] fixing gameParameters.showFixation indentation --- ios/FlankerNativeComponents/GameManager.swift | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/ios/FlankerNativeComponents/GameManager.swift b/ios/FlankerNativeComponents/GameManager.swift index e8331ab5a..8fa72212f 100644 --- a/ios/FlankerNativeComponents/GameManager.swift +++ b/ios/FlankerNativeComponents/GameManager.swift @@ -204,15 +204,15 @@ class GameManager { updateButtonTitle() if gameParameters.showFixation { - setEndTimeViewingImage(time: CACurrentMediaTime(), isStart: true, type: .fixations) + setEndTimeViewingImage(time: CACurrentMediaTime(), isStart: true, type: .fixations) - if let image = URL(string: gameParameters.fixation), gameParameters.fixation.contains("https") { - delegate?.updateFixations(image: image, isStart: true, typeTime: .fixations) - } else { - delegate?.updateText(text: gameParameters.fixation, color: .black, font: Constants.bigFont, isStart: true, typeTime: .fixations) - } - timerSetText = Timer(timeInterval: gameParameters.fixationDuration / 1000, target: self, selector: #selector(setText), userInfo: nil, repeats: false) - RunLoop.main.add(timerSetText!, forMode: .common) + if let image = URL(string: gameParameters.fixation), gameParameters.fixation.contains("https") { + delegate?.updateFixations(image: image, isStart: true, typeTime: .fixations) + } else { + delegate?.updateText(text: gameParameters.fixation, color: .black, font: Constants.bigFont, isStart: true, typeTime: .fixations) + } + timerSetText = Timer(timeInterval: gameParameters.fixationDuration / 1000, target: self, selector: #selector(setText), userInfo: nil, repeats: false) + RunLoop.main.add(timerSetText!, forMode: .common) } else { setText() }