Matt Reagan (@hmblebee) header
Matt Reagan (@hmblebee) profile picture

iOS / macOS engineer. Formerly: @Apple, @Twitch, @BigNerdRanch

Portland, OR
Joined June 2012
Photo by Matt Reagan (@hmblebee)Photo by Matt Reagan (@hmblebee)Photo by Matt Reagan (@hmblebee)Photo by Matt Reagan (@hmblebee)Photo by Matt Reagan (@hmblebee)Photo by Matt Reagan (@hmblebee)Photo by Matt Reagan (@hmblebee)Photo by Matt Reagan (@hmblebee)Photo by Matt Reagan (@hmblebee)Photo by Matt Reagan (@hmblebee)
App design tip: Xcode 10 includes image data when copying XIB controls to the clipboard. This means you can easily copy/paste pixel-perfect  UI into your UX mockups.
8
220
28
771
Experiment in minimalist Swift, simple 3D world written in ~200 LOC, no 3D/gfx libraries, just some floats + cos/sin. Clearly feeling nostalgic for Spectre game that shipped on my '93  Performa. GitHub: github.com/matthewreagan/Sim…
1
4
1
29
Wrote a Swift app to play with & visualize Fourier series. Swift is fun for little proof-of-concepts like this
1
3
24
If you just Airdropped a bunch of photos from iOS to your Mac and need to quickly convert them, you can use `sips` (which supports HEIC). Ex. one-liner (converts HEIC -> JPEG):
1
12
I should add that this only appears to work for AppKit controls, not UIKit, unfortunately
3
2
19
Wrote a basic Perlin noise generator in Swift to experiment with procedurally generating organic textures in SpriteKit. (Fun to play with the math, vs. using GameplayKit.) gist.github.com/matthewreaga… #Swift #gamedev #SpriteKit
14
New blog post on SpriteKit shaders and geometry deformations. Demo code & video: sound-of-silence.com/?articl… #gamedev #spritekit #ios #macos
1
6
1
43
Demo of a simple technique for breaking apart 2D nodes in #SpriteKit for shatter or explosion effects. Video + code: sound-of-silence.com/?articl… #Swift #gamedev
1
3
15
Xcode tip: delete the same text across multiple lines by option-click-dragging. You'll get the ? cursor, but it will still function as a selection tool. #Swift #Xcode
4
1
22
Experimenting with procedurally-generated terrain + water in #Swift for game prototype idea. (Belated #screenshotsaturday) #gamedev
5
10
Bash script to generate all 2^n-sized images from an input, for draft #macOS app icons or general resizing: github.com/matthewreagan/Mac…
1
2
5
Enabled in production, but essentially a NOP without a custom environment variable switched on, allows QA/testers to catch
Friendly reminder: not all string comparison methods are equal. Be careful, especially with localized text. #Swift
5
10
Working on a SpriteKit node for Dust's UI to display game time + weather #gamedev #screenshotsaturday Dev blog: sound-of-silence.com/?articl…
1
1
11
Matt Reagan retweeted
Testing out graph based jump arcs for platformers. It's not practical in games, but it's not great for prototyping either ¯\_(ツ)_/¯ #gamedev
25
129
6
548
Custom Xcode breakpoint sounds, available on GitHub + blost post on debugging with them: sound-of-silence.com/?articl…
3
11
If you need to branch conditionally between Mac/iOS, avoid TARGET_OS_MAC, it's 1 even for iOS (table: @gparker)
1
5
Matt Reagan retweeted
Recovered 10 GB by removing unavailable Xcode Simulators. Command: xcrun simctl delete unavailable
9
224
23
705
CALayer's linear minification filter can often look nearly identical to 'nearest'. If your layer is looking ugly, try kCAFilterTrilinear
3
Illogical, conflates design & eng.; equates any  product flaw as failure in design? I think author is either confused, or trolling /.02 nitter.gq/theatlantic/status/829…
The myth of Apple's great design, @ibogost writes theatln.tc/2lsk5hB
1