title: Resizing the window according to a variable swift
body: <p>I have a <code>NSViewController</code> and a variable <code>num</code>. I want to change the size of the window dynamically according to that variable. Is there any way to do that in swift?</p>