Not the moderator who declined your flag, but I think I can surmise why.
Here's the code sample from the question:
override func preferredStatusBarStyle() -> UIStatusBarStyle {
return UIStatusBarStyle.LightContent;
}
And here's the code sample from the answer:
class Scene2ViewController: UIViewController {
//blah blah code
override func preferredStatusBarStyle() -> UIStatusBarStyle {
return .LightContent
}
}
Other than the seemingly superfluous class definition, notice the return statements. The answer omits the UIStatusBarStyle
enum name from the expression. For all the moderator knew, omitting the enum name could have had a different effect, and so they chose to err on the side of caution and not assume the code was in fact functionally equivalent, and so declined your flag on those grounds.
Of course, knowing Swift I know the code is functionally identical, and I likely would have handled your flag differently had I seen it. Often we'll ask around if we need a second opinion on custom flags like this on questions and answers, but don't rely on this happening. I think this is one of the rare cases where I'd actually recommend that users who know better, with the right privileges vote to delete such answers — moderators tend not to act on flags that have a basis on technical accuracy in general.