I am new to programming with Swift (with a Java background) and I am trying to initialise a CGFloat using the init() method. I also need a reference to CGFloat after it is initialised. I keep trying this like I'd do in Java:
CGFloat _cgFloat = CGFloat.init(10);
Quite evidently as the IDE indicates, this is an error. I don't seem to understand how to work around this. What am I doing wrong ? Isn't there a way to make this work like in Java:
Object a = new Object();
A solution to this would be most appreciated ! Thanks in advance.