swift

Importing modules to Command Line Tool in Swift

I’m a quite new in Swift and now I’m trying to create a Command Line Tool witch contains several modules. I tried to find information how to add modules, but all the tips are for iOS only. I also found information that I can create a Cocoa…

How can I Observe a var in a Class?

Here is my code for a simple class, My goal is that observeValueOfModel() function automatically put changes of valueOfModel under control and print the correct message out!
I can manually use this func for getting the Answer, but the goal…