You probably need to provide more context and/or the code surrounding it. I tried it (Xcode 7 and 7.1 beta) on iOS app (simulator & device) and OS X app (Yosemite) and it works fine.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: