How to make the opening window bigger?


#1

I might be missing something simple, but when I run this app my window isn’t very big, something like 4" x 3". how can I make it bigger when it first opens so the pictures have more space to move in?

Thanks!


#2

Once again, shortly after the initial post I figured out a way. I added the following changes to ViewController.swift:

override func viewDidLoad() {
	super.viewDidLoad()

	// Set view to be layer-hosting
	view.layer = CALayer()
	view.layer?.frame = CGRect(x: 50, y: 50, width: 1000, height: 750)
	view.layer?.bounds = (view.layer?.frame)!
	view.wantsLayer = true
	
	let textContainer = CALayer()
	textContainer.anchorPoint = CGPoint.zero
    ...

Then select Main.storyboard. Select the window directly beneath the Window Controller. Select the Size Inspector. I changed the content size to 1000 x 750, then selected full screen minimum content size.

When I ran the program, the window still opened smaller, however the scattered images were being made in the bigger size. Resize the window to fit the content. Done.

Mine has stayed the new, bigger size even after closing and reopening the Scattered project.