-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
494 lines (231 loc) · 14.9 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
<!DOCTYPE html>
<html lang="">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="twitter:card" content="summary"/>
<meta name="twitter:image" content="/images/bridge2.jpg"/>
<meta name="twitter:title" content="Michael Brown"/>
<meta name="twitter:description" content="the only way to do great work is to love what you do"/>
<meta name="twitter:site" content="@mluisbrown"/>
<meta property="og:title" content="Michael Brown" />
<meta property="og:site_name" content="Michael Brown" />
<meta property="og:url" content="https://michael-brown.net/" />
<meta property="og:image" content="/images/bridge2.jpg"/>
<meta property="og:type" content="website" />
<meta property="og:description" content="the only way to do great work is to love what you do" />
<title>Michael Brown</title>
<meta name="description" content="the only way to do great work is to love what you do" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="shortcut icon" href="https://michael-brown.net/images/favicon.ico">
<link rel="apple-touch-icon" href="https://michael-brown.net/images/apple-touch-icon.png" />
<link rel="stylesheet" type="text/css" href="https://michael-brown.net/css/screen.css" />
<link rel="stylesheet" type="text/css" href="https://michael-brown.net/css/nav.css" />
<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/styles/github.min.css">
<script src="//cdnjs.cloudflare.com/ajax/libs/highlight.js/9.8.0/highlight.min.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<link href="https://michael-brown.net/index.xml" rel="alternate" type="application/rss+xml" title="Michael Brown" />
<meta name="generator" content="Hugo 0.89.4" />
<link rel="canonical" href="https://michael-brown.net/" />
<script type="application/ld+json">
{
"@context": "https://schema.org",
"@type": "Website",
"publisher": {
"@type": "Person",
"name": null ,
"image": {
"@type": "ImageObject",
"url": "https://michael-brown.net/images/head.png",
"width": 250,
"height": 250
},
"url": "https://michael-brown.net",
"sameAs": [
]
},
"url": "https://michael-brown.net/",
"mainEntityOfPage": {
"@type": "WebPage",
"@id": "https://michael-brown.net/"
},
"description": "the only way to do great work is to love what you do"
}
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-41132207-2', 'auto');
ga('send', 'pageview');
</script>
</head>
<body class="nav-closed">
<div class="nav">
<h3 class="nav-title">Menu</h3>
<a href="#" class="nav-close">
<span class="hidden">Close</span>
</a>
<ul>
<li class="nav-opened" role="presentation">
<a href="https://michael-brown.net/about/">About me</a>
</li>
<li class="nav-opened" role="presentation">
<a href="https://michael-brown.net/apps/">Apps</a>
</li>
<li class="nav-opened" role="presentation">
<a href="https://michael-brown.net/">Blog</a>
</li>
</ul>
<a class="subscribe-button icon-feed" href="https://michael-brown.net/index.xml">Subscribe</a>
</div>
<span class="nav-cover"></span>
<div class="site-wrapper">
<header class="main-header" style="background-image: url(/images/bridge2.jpg)">
<nav class="main-nav overlay clearfix">
<a class="blog-logo" href="https://michael-brown.net/"><img src="https://michael-brown.net/images/head.png" alt="Blog Logo" /></a>
<a class="menu-button" href="#"><span class="burger">☰</span><span class="word">Menu</span></a>
</nav>
<div class="vertical">
<div class="main-header-content inner">
<a class="bloglogo" href="https://github.com/mluisbrown" target="_blank">
<span class="icon-github" style="color:white;font-size:2em"></span>
</a>
<a class="bloglogo" href="https://stackoverflow.com/users/368085" target="_blank">
<img src="images/stackoverflow.svg" height="40" width="40">
</a>
<a class="bloglogo" href="https://twitter.com/mluisbrown" target="_blank">
<span class="icon-twitter" style="color:white;font-size:2em"></span>
</a>
<h1 class="page-title">Michael Brown</h1>
<h2 class="page-description">the only way to do great work is to love what you do</h2>
</div>
</div>
<a class="scroll-down icon-arrow-left" href="#content"><span class="hidden">Scroll Down</span></a>
</header>
<main id="content" class="content" role="main">
<div class="extra-pagination inner">
<nav class="pagination" role="navigation">
<span class="page-number">Page 1 of 2</span>
<a class="older-posts" href="https://michael-brown.net/page/2/">Older Posts →</a>
</nav>
</div>
<article class="post post">
<header class="post-header">
<h2 class="post-title"><a href="https://michael-brown.net/2021/the-future-of-the-reactiveswift-composable-architecture/">The future of The ReactiveSwift Composable Architecture</a></h2>
</header>
<section class="post-excerpt">
<p>Introduction The ReactiveSwift Composable Architecture is a fork of the Point-Free Composable Architecture. It uses ReactiveSwift as the basis for the Effect type instead of Apple’s Combine framework.
The reason why I created the fork, in May 2020, was because Combine is only available on iOS 13 and macOS 10.15 and later. At the time I was working on a brand new iOS app where I really wanted to use TCA but we couldn’t yet set a minimum deployment target of iOS 13. <a class="read-more" href="https://michael-brown.net/2021/the-future-of-the-reactiveswift-composable-architecture/">»</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://michael-brown.net/images/head.png" alt="Author image" nopin="nopin" />
Michael Brown
on
<a href="https://michael-brown.net//tags/swift/">#swift</a>,
<a href="https://michael-brown.net//tags/dev/">#dev</a>,
<time class="post-date" datetime="2021-12-01T00:00:00Z">
1 Dec 2021
</time>
</footer>
</article>
<article class="post post">
<header class="post-header">
<h2 class="post-title"><a href="https://michael-brown.net/2021/xcode-12-tabs/">Xcode 12 tabs</a></h2>
</header>
<section class="post-excerpt">
<p>Up until Xcode 12 was released, Xcode tabs were a pretty terrible user experience, especially if you also regularly used an actually good code editor like Sublime Text or Visual Studio Code and knew what a good tabs UX was like. In Xcode tabs you could open the same file in 2 (or more) different tabs, for instance, which is close to useless. Xcode tabs worked pretty much like document tabs in any other application. <a class="read-more" href="https://michael-brown.net/2021/xcode-12-tabs/">»</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://michael-brown.net/images/head.png" alt="Author image" nopin="nopin" />
Michael Brown
on
<a href="https://michael-brown.net//tags/swift/">#swift</a>,
<a href="https://michael-brown.net//tags/dev/">#dev</a>,
<time class="post-date" datetime="2021-01-17T00:00:00Z">
17 Jan 2021
</time>
</footer>
</article>
<article class="post post">
<header class="post-header">
<h2 class="post-title"><a href="https://michael-brown.net/2018/touch-id-and-face-id-on-ios/">Touch ID and Face ID on iOS</a></h2>
</header>
<section class="post-excerpt">
<p>Introduction Adding support for Touch ID and Face ID to your app is not always completely straightforward, especially given that the documentation from Apple on the APIs is somewhat sparse and in some cases incorrect. I recently added Face ID and Touch ID support to my company’s app and I thought it would be helpful to document what I found.
There is only a single class, LAContext in the LocalAuthentication framework, so it’s surprising how complex it can get. <a class="read-more" href="https://michael-brown.net/2018/touch-id-and-face-id-on-ios/">»</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://michael-brown.net/images/head.png" alt="Author image" nopin="nopin" />
Michael Brown
on
<a href="https://michael-brown.net//tags/swift/">#swift</a>,
<a href="https://michael-brown.net//tags/dev/">#dev</a>,
<time class="post-date" datetime="2018-05-05T00:00:00Z">
5 May 2018
</time>
</footer>
</article>
<article class="post post">
<header class="post-header">
<h2 class="post-title"><a href="https://michael-brown.net/2017/swift-and-kvo-context-variables/">Swift and KVO context variables</a></h2>
</header>
<section class="post-excerpt">
<p>I came across a crash in my app Memories when using the iOS 11 betas. It happened reliably every time I loaded a video, and the video code uses KVO, as AVFoundation requires you to use it for a lot of things.
When I ran the app in Xcode this was the exception that was causing the crash:
Simultaneous accesses to 0x1c41ded68, but modification requires exclusive access. Previous access (a modification) started at addObserver(_:forKeyPath:options:context:) Current access (a modification) started at observeValue(forKeyPath:of:change:context:) The hex address was the address of the property I was using as the context passed to addObserver() and which I was checking in observeValue. <a class="read-more" href="https://michael-brown.net/2017/swift-and-kvo-context-variables/">»</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://michael-brown.net/images/head.png" alt="Author image" nopin="nopin" />
Michael Brown
on
<a href="https://michael-brown.net//tags/swift/">#swift</a>,
<a href="https://michael-brown.net//tags/dev/">#dev</a>,
<time class="post-date" datetime="2017-09-02T00:00:00Z">
2 Sep 2017
</time>
</footer>
</article>
<article class="post post">
<header class="post-header">
<h2 class="post-title"><a href="https://michael-brown.net/2016/using-phlivephotoview-with-auto-layout/">Using PHLivePhotoView with Auto Layout</a></h2>
</header>
<section class="post-excerpt">
<p>So, I was working on updating my app Memories to support displaying Live Photos properly and not just as a static image. I took a look at the documentation for PHLivePhotoView and thought that this would be fairly straightforward. For Live Photos, I’ll just use a PHLivePhotoView instead of a UIImageView.
Well, as is usually the case when a developer says: “this looks straightforward, I’ll have it done in a couple of hours”, it was not quite so straightforward and had me scratching my head and cursing until 2am until I finally realised what I was doing wrong. <a class="read-more" href="https://michael-brown.net/2016/using-phlivephotoview-with-auto-layout/">»</a></p>
</section>
<footer class="post-meta">
<img class="author-thumb" src="https://michael-brown.net/images/head.png" alt="Author image" nopin="nopin" />
Michael Brown
on
<a href="https://michael-brown.net//tags/swift/">#swift</a>,
<a href="https://michael-brown.net//tags/dev/">#dev</a>,
<a href="https://michael-brown.net//tags/autolayout/">#autolayout</a>,
<time class="post-date" datetime="2016-11-03T00:00:00Z">
3 Nov 2016
</time>
</footer>
</article>
<nav class="pagination" role="navigation">
<span class="page-number">Page 1 of 2</span>
<a class="older-posts" href="https://michael-brown.net/page/2/">Older Posts →</a>
</nav>
</main>
<footer class="site-footer clearfix">
<section class="copyright"><a href="">Michael Brown</a> Copyright © 2016</section>
<section class="poweredby">Proudly generated by <a class="icon-hugo" href="https://gohugo.io">HUGO</a>, with <a class="icon-theme" href="https://github.com/vjeantet/hugo-theme-casper">Casper</a> theme</section>
<div style="display:none">
<a rel="me" href="https://techhub.social/@mluisbrown">Mastodon</a>
</div>
</footer>
</div>
<script type="text/javascript" src="https://michael-brown.net/js/jquery.js"></script>
<script type="text/javascript" src="https://michael-brown.net/js/jquery.fitvids.js"></script>
<script type="text/javascript" src="https://michael-brown.net/js/index.js"></script>
</body>
</html>