Nothing like vacation to accelerate personal projects, very happy with how NewsWave for Mac is shaping up. No promises on when, but I’m planning to post more about its progress very soon. One of the items I worked on today is how icons and images will appear in the app, the intent is to show …
Tag Archives: NSImage
Creating a collage by combining an array of images (macOS & iOS)
In NewsWave, when you are in the “Add Feed” view you have the option to search the RSS repository, add a RSS URL or choose from ‘recommended feeds’. Recommended feeds may change over time so, instead of using static images, NewsWave looks at the feeds from each recommended category and creates a collage to represent …
Continue reading “Creating a collage by combining an array of images (macOS & iOS)”
Resize NSImage Proportionally (Swift)
I wanted a simple function to resize an image to a desired height, while keeping proportions. Here’s what I came up with (based on Marco implementation): extension NSImage { func resizedImageTo(sourceImage: NSImage, newSize: NSSize) -> NSImage?{ if sourceImage.isValid == false { …
NSImageView Aspect Fill
Setting an image to use AspectFill in iOS is trivial, you can set it by code or directly in storyboard. But how do you do it in macOS? In Cocoa/App Kit there is no property for that, you may scale it , but there is no option for AspectFill (or AspectFit for that matter). So, …