Here my line
NSView *myview
[self.myview.layer setBackgroundColor:[NSColor colorWithPatternImage:[NSImage imageNamed:@"myImageName.png"]].CGColor];
How to write these lines in swift language
.
Thanks
Here my line
NSView *myview
[self.myview.layer setBackgroundColor:[NSColor colorWithPatternImage:[NSImage imageNamed:@"myImageName.png"]].CGColor];
How to write these lines in swift language
.
Thanks
I don't understand beginning of your code (why
self.myview.layer
ifmyview
is declared one line above), but rest should be something like this:Let me know if it works.