Cursor is not visible in NSScrollView

I use NSScrollView in my Swift 4.2 application (XCode 10.0) and everything work fine but can't see cursor in editted text. What I do wrongly, any setup needed? Thanks.