The Swift compiler is telling you it has not idea about a class called LSApplicationWorkspace. This is because it is a private class not described in any headers available to you as a 3rd party developer. Should you be caught using LSApplicationWorkspace APIs during App Store review, your submission will be rejected. Given this class contains APIs that change between OS versions (by virtue of being undocumented and private), and APIs which are for good privacy reasons not available to 3rd party devs, using it is almost certainly a really bad idea, even if you are technically able to do so with either of the the following methods.
Create a private module map file where you import a header you somehow acquired for the private framework that contains LSApplicationWorkspace. This way of calling to LSApplicationWorkspace (or indeed any method involving using the headers for Mobile CoreServices – i.e. any method except for performSelector mentioned below) would almost certainly get your app submission booted from App Store review, because this method of (ultimately) Objective-C method calls would be visible to static analysis methods Apple runs on your code as part of App Store review.
Use NSClassFromString:
let LSApplicationWorkspace_class:AnyObject = NSClassFromString("LSApplicationWorkspace")! as AnyObject
let workspace = LSApplicationWorkspace_class.perform(NSSelectorFromString("defaultWorkspace"))! as AnyObject
With the above code you now get an instance of LSApplicationWorkspace with which you can perform code with performSelector – should you know what selectors it responds to (… in the particular operating system version you are running on). Again though, doing anything with LSApplicationWorkspace is probably a bad idea.