Trouble importing foundation into swift... Xcode 6 beta -
i brand new xcode. thank reading this.
i'm attempting used language, i'm messing code importing foundation , creating simple nsrect. however, i'm getting error when try create nsrect.
here's code:
import foundation import uikit let rect = nsrect(x: 50, y: 50, width: 100, height: 100)
and receive error saying "use of unresolved identifier 'nsrect"." doing incorrectly?
thank help!
use cgrect instead of nsrect . nsrect cocoa, if project mac app use import cocoa
.
import foundation import uikit let rect = cgrect(x: 50, y: 50, width: 100, height: 100)
Comments
Post a Comment