<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
  <title type="text">Dan Rosenstark, author of MIDI Designer, on Tech &amp; Music</title>
  <id>http://dr2050.postach.io/feed.xml</id>
  <updated>2024-04-23T20:40:05.475000Z</updated>
  <link href="http://dr2050.postach.io/" />
  <link href="http://dr2050.postach.io/feed.xml" rel="self" />
  <generator>Werkzeug</generator>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">The Whisper Script, Packaged</title>
    <id>https://dr2050.postach.io/post/the-whisper-script-packaged</id>
    <updated>2024-04-23T20:40:05.475000Z</updated>
    <published>2024-04-19T21:19:26Z</published>
    <link href="https://dr2050.postach.io/post/the-whisper-script-packaged" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;h2&gt;Overview&lt;/h2&gt;
&lt;p&gt;This is a script called &lt;code&gt;whisper&lt;/code&gt;. &lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Takes .m4a and .mp3 files from a Dropbox directory&lt;/li&gt;
&lt;li&gt;Has ChatGPT Whisper endpoint transcribe them&lt;/li&gt;
&lt;li&gt;Has ChatGPT take the Whisper transcription, correct it and make paragraphs&lt;/li&gt;
&lt;li&gt;Creates a text file in another Dropbox folder&lt;/li&gt;
&lt;li&gt;Sends and email to Evernote&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;You need:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;An OpenAI API key&lt;/li&gt;
&lt;li&gt;Dropbox folders on your Mac&lt;/li&gt;
&lt;li&gt;If you use the email functionality, you need SMTP credentials and a 'make to' address for Evernote (or you can comment this part out).&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Instructions&lt;/h2&gt;
&lt;p&gt;You need to change directories and generally think for yourself a bit. If you're not comfortable editing scripts, this might not be for you.&lt;/p&gt;
&lt;p&gt;Some notes:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;These scripts work for me, but my home directory is &lt;code&gt;/Users/yourUser&lt;/code&gt; so you need to modify that.&lt;/li&gt;
&lt;li&gt;Get an OpenAI API key&lt;/li&gt;
&lt;li&gt;Create the Credentials file&lt;/li&gt;
&lt;li&gt;Modify the scripts&lt;/li&gt;
&lt;li&gt;Run &lt;code&gt;whisper&lt;/code&gt; on its own first. You might need to handle Python dependencies with pip. ChatGPT can help you.&lt;/li&gt;
&lt;li&gt;When you run Whisper inside the Launchctl context, you might get lost. Note that it dumps log files in &lt;code&gt;/tmp&lt;/code&gt; &lt;/li&gt;
&lt;li&gt;This blog screws up formatting a bit. You can see the raw Evernote note &lt;a href=&quot;https://tinyurl.com/whisper789&quot;&gt;here&lt;/a&gt;. It's Markdown.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Credentials&lt;/h2&gt;
&lt;p&gt;I store these in &lt;code&gt;$HOME/.secure_env&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;They should look like this&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;export OPENAI_API_KEY='' # beware this MIGHT have a dash in it!
export SMTP_SERVER=''
export SMTP_USERNAME=''
export SMTP_PASSWORD=''
export SMTP_PORT=''
export SMTP_SENDER=''
export EVERNOTE_EMAIL=''
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;The Whisper Script&lt;/h2&gt;
&lt;p&gt;I stored this in &lt;code&gt;~/scripts/whisper&lt;/code&gt;. Ensure it's executable with  &lt;code&gt;chmod +x whisper&lt;/code&gt;.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;#!/usr/bin/env python3

import datetime
from pathlib import Path
import argparse
from openai import OpenAI
import os, sys
import smtplib

client = OpenAI()

# NOTE: you need this in the environment
# export OPENAI_API_KEY='your key'
# BEWARE of the launch agent running from here
# ~/Library/LaunchAgents/com.confusionstudios.watchvoicedictationfolder.plist
# and that guy runs the whisper-wrapper to handle paths and environment variables

def get_smtp_credentials():
    # Retrieve SMTP server, port, username, and password from environment variables
    smtp_server = os.getenv(&amp;quot;SMTP_SERVER&amp;quot;)
    smtp_port = os.getenv(&amp;quot;SMTP_PORT&amp;quot;)
    smtp_username = os.getenv(&amp;quot;SMTP_USERNAME&amp;quot;)
    smtp_password = os.getenv(&amp;quot;SMTP_PASSWORD&amp;quot;)
    smtp_sender = os.getenv(&amp;quot;SMTP_SENDER&amp;quot;)
    return smtp_server, smtp_port, smtp_username, smtp_password, smtp_sender

def send_email_to_evernote(subject, body):
    recipient = os.getenv(&amp;quot;EVERNOTE_EMAIL&amp;quot;)

    # Get SMTP credentials
    smtp_server, smtp_port, smtp_username, smtp_password, smtp_sender = get_smtp_credentials()

    try:
        # Connect to the SMTP server
        smtp_server = smtplib.SMTP_SSL(smtp_server, smtp_port)
        smtp_server.login(smtp_username, smtp_password)

        # Compose the email message
        message = f&amp;quot;Subject: {subject} @Diary\n\n{body}&amp;quot;

        # Send the email
        smtp_server.sendmail(smtp_sender, recipient, message)

        # Close the connection
        smtp_server.quit()

        print(&amp;quot;Email sent successfully.&amp;quot;)
    except Exception as e:
        print(f&amp;quot;Error sending email: {e}&amp;quot;)

def get_creation_time(file_path):
    return datetime.datetime.fromtimestamp(file_path.stat().st_ctime)

def transcribe_with_whisper_api(file_path):
    print(f&amp;quot;Sending up audio file {file_path.stem} to Whisper for transcription.&amp;quot;)
    audio_file = open(file_path, &amp;quot;rb&amp;quot;)
    transcription = 
client.audio.transcriptions.create
(
        model=&amp;quot;whisper-1&amp;quot;, file=audio_file, response_format=&amp;quot;text&amp;quot;
    )

    print(f&amp;quot;Got the transcription, length: {len(transcription)}. Now sending to ChatGPT for post-processing.&amp;quot;)

    completion = 
client.chat.completions.create
(
        model=&amp;quot;gpt-3.5-turbo&amp;quot;,
        messages=[
            {
                &amp;quot;role&amp;quot;: &amp;quot;system&amp;quot;,
                &amp;quot;content&amp;quot;: &amp;quot;The following is a transcript. Please make paragraphs out of the transcript. Do not alter it but except to fix homonyms, spelling discrepancies and possible voice transcription mistakes. Feel free to adjust punctuation. Also note the spelling of MIDI Designer. Do not respond to the transcript! THE FOLLOWING IS THE RAW TRANSCRIPT:&amp;quot;,
            },
            {
                &amp;quot;role&amp;quot;: &amp;quot;user&amp;quot;,
                &amp;quot;content&amp;quot;: transcription,
            },
        ],
    )

    return completion.choices[0].message.content

def process_file(file_path, output_file, dry_run=False):
    if dry_run:
        print(f&amp;quot;Would transcribe {file_
path.name
} into {output_file}&amp;quot;)
    else:
        print(f&amp;quot;Processing {file_
path.name
}...&amp;quot;)
        transcript = transcribe_with_whisper_api(file_path)
        with open(output_file, &amp;quot;w&amp;quot;) as f:
            f.write(transcript)
        print(f&amp;quot;Generated {output_
file.name
}&amp;quot;)
        send_email_to_evernote(output_
file.name
, transcript)
        print(f&amp;quot;Sent Evernote Email with Subject {output_
file.name
}&amp;quot;)

def process_files(source_dir, output_dir, dry_run=False):
    # Load list of already processed files
    transcribed_file_path = source_dir / 'transcribed-files.txt'
    if transcribed_file_path.exists():
        with transcribed_file_
path.open
('r') as file:
            processed_files = {line.strip() for line in file}
    else:
        processed_files = set()

    voice_files = list(source_dir.glob(&amp;quot;*.m4a&amp;quot;)) + list(source_dir.glob(&amp;quot;*.mp3&amp;quot;))
    for file_path in voice_files:
        if file_
path.name
 in processed_files:
            print(f&amp;quot;Skipping {file_
path.name
}, already processed.&amp;quot;)
            continue

        creation_time = get_creation_time(file_path)
        formatted_time = creation_time.strftime(&amp;quot;%Y-%m-%d-%H-%M&amp;quot;)
        old_filename_without_extension = file_path.stem

        if old_filename_without_extension.isdigit():
            output_file_name = f&amp;quot;{formatted_time}.txt&amp;quot;
        else:
            output_file_name = f&amp;quot;{formatted_time} - {old_filename_without_extension}.txt&amp;quot;

        output_file = output_dir / output_file_name

        process_file(file_path, output_file, dry_run)

        if not dry_run:
            # Add file to processed list and update file
            processed_files.add(file_
path.name
)
            with transcribed_file_
path.open
('a') as file:
                file.write(file_
path.name
 + '\n')

def parse_arguments():
    parser = argparse.ArgumentParser(
        description=&amp;quot;Process voice dictations and generate text files.&amp;quot;
    )
    parser.add_argument(
        &amp;quot;--dry-run&amp;quot;, action=&amp;quot;store_true&amp;quot;, help=&amp;quot;Print out actions without executing&amp;quot;
    )
    return parser.parse_args()

def main():
    args = parse_arguments()
    source_dir = Path(&amp;quot;~/Dropbox/x-fer/voice-dictation&amp;quot;).expanduser()
    if not os.path.exists(source_dir):
        print(f&amp;quot;The source directory {source_dir} does not exist.&amp;quot;)
        sys.exit(1)

    output_dir = Path(&amp;quot;~/Dropbox/x-fer/voice-dictation-output&amp;quot;).expanduser()

    output_dir.mkdir(parents=True, exist_ok=True)

    process_files(source_dir, output_dir, dry_run=args.dry_run)

if __name__ == &amp;quot;__main__&amp;quot;:
    main()
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;The Launchctl Command That Loads Whisper Wrapper&lt;/h2&gt;
&lt;p&gt;This is &lt;code&gt;~/Library/LaunchAgents/com.confusionstudios.watchvoicedictationfolder.plist&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;NOTE: You need to adjust paths for everything in this plist except for the /tmp outputs which do give great debugging information.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-xml&quot;&gt;&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;
&amp;lt;!DOCTYPE plist PUBLIC &amp;quot;-//Apple//DTD PLIST 1.0//EN&amp;quot; &amp;quot;
http://www.apple.com/DTDs/PropertyList-1.0.dtd
&amp;quot;&amp;gt;
&amp;lt;plist version=&amp;quot;1.0&amp;quot;&amp;gt;
&amp;lt;dict&amp;gt;
    &amp;lt;key&amp;gt;Label&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;com.confusionstudios.watchvoicedictationfolder&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;ProgramArguments&amp;lt;/key&amp;gt;
    &amp;lt;array&amp;gt;
        &amp;lt;string&amp;gt;/Users/yourUser/scripts/whisper-wrapper&amp;lt;/string&amp;gt;
    &amp;lt;/array&amp;gt;
    &amp;lt;key&amp;gt;WatchPaths&amp;lt;/key&amp;gt;
    &amp;lt;array&amp;gt;
        &amp;lt;string&amp;gt;/Users/yourUser/Dropbox/x-fer/voice-dictation&amp;lt;/string&amp;gt;
    &amp;lt;/array&amp;gt;
    &amp;lt;key&amp;gt;RunAtLoad&amp;lt;/key&amp;gt;
    &amp;lt;true/&amp;gt;
    &amp;lt;key&amp;gt;KeepAlive&amp;lt;/key&amp;gt;
    &amp;lt;false/&amp;gt;
    &amp;lt;key&amp;gt;StandardOutPath&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;/tmp/whisper-wrapper.out&amp;lt;/string&amp;gt;
    &amp;lt;key&amp;gt;StandardErrorPath&amp;lt;/key&amp;gt;
    &amp;lt;string&amp;gt;/tmp/whisper-wrapper.err&amp;lt;/string&amp;gt;
&amp;lt;/dict&amp;gt;
&amp;lt;/plist&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;The Wrapper Script&lt;/h2&gt;
&lt;p&gt;Launchctl is missing stuff from the environment so you need this wrapper script. Ensure it's executable with  &lt;code&gt;chmod +x whisper-wrapper&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#!/bin/bash
source $HOME/.secure_env
/opt/homebrew/bin/python3 $HOME/scripts/whisper #note the location of python AND the script, you might have to adjust
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Also: you need to name the Python executable path so it can pick up its dependencies.&lt;/p&gt;
&lt;p&gt;Version 0.01h&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Weakify and Strongify Macros for Objective-C</title>
    <id>https://dr2050.postach.io/post/weakify-and-strongify-macros-for-objective-c</id>
    <updated>2023-06-23T20:44:01.951000Z</updated>
    <published>2023-06-23T20:42:20Z</published>
    <link href="https://dr2050.postach.io/post/weakify-and-strongify-macros-for-objective-c" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;p&gt;I worked with Chat to hammer these out. Not sure why everybody on the Internet suggests &lt;code&gt;typeof&lt;/code&gt; but anyway...&lt;/p&gt;
&lt;blockquote&gt;
&lt;p&gt;The correct syntax is indeed __typeof(), not typeof(). The __typeof() keyword is a GCC extension which is supported by both GCC and LLVM/Clang compilers. It allows you to declare a variable of the same type as another variable.&lt;/p&gt;
&lt;/blockquote&gt;
&lt;p&gt;And so...&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;// weakify: creates a new weak reference 'weakSelf' to the variable (helps avoid retain cycles)
// Usage: weakify(self)
#define weakify(var) __weak __typeof(var) weakSelf = var;

// strongify: creates a new strong reference 'strongSelf' from the weak reference (ensures object stays in memory during block execution)
// Usage: strongify(weakSelf)
#define strongify(var) __strong __typeof(var) strongSelf = var;
&lt;/code&gt;&lt;/pre&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Managing Git Submodules Branches When Switching Branches</title>
    <id>https://dr2050.postach.io/post/managing-git-submodules-branches-when-switching-branches</id>
    <updated>2023-06-18T23:03:27.995000Z</updated>
    <published>2023-06-18T22:00:33Z</published>
    <link href="https://dr2050.postach.io/post/managing-git-submodules-branches-when-switching-branches" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;h2&gt;Is This Written by ChatGPT?&lt;/h2&gt;
&lt;p&gt;Well, it's not &lt;strong&gt;not&lt;/strong&gt; written by ChatGPT. But it's a collab.&lt;/p&gt;
&lt;h2&gt;Problem&lt;/h2&gt;
&lt;p&gt;Working with git submodules presents a unique challenge: when switching branches in the superproject (the main project), the submodule's branch doesn't automatically change. Instead, it stays on the previously checked-out branch. This lack of tracking can lead to inconsistencies between the superproject and the submodule, resulting in confusion and potential issues.&lt;/p&gt;
&lt;h2&gt;Note About Submodules&lt;/h2&gt;
&lt;p&gt;Before we delve into the solution, let's clarify the typical use of git submodules. Submodules are designed to allow a Git repository to be a subdirectory of another Git repository, maintaining their commits separately. In essence, submodules pin a specific commit, not a branch, from an external repository into your primary repository.&lt;/p&gt;
&lt;p&gt;Therefore, if your submodule's branch needs to track the branch of your main project, it might indicate that these two components should not be separate repositories. However, in certain cases where you find tracking branches useful, the following solution could serve your needs.&lt;/p&gt;
&lt;h2&gt;Solution&lt;/h2&gt;
&lt;p&gt;To ensure that the submodule changes to a corresponding branch when switching branches in the superproject, we can create two scripts: one to set (record) the current branch of the submodule when switching branches, and another to restore the submodule to its recorded branch when switching back.&lt;/p&gt;
&lt;h2&gt;Implementation&lt;/h2&gt;
&lt;p&gt;In the implementation, we create two Python scripts: &lt;code&gt;git-submodule-branch-set&lt;/code&gt; and &lt;code&gt;git-submodule-branch-restore&lt;/code&gt;. Here's how they work:&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;
&lt;p&gt;When switching branches in the superproject, run &lt;code&gt;git-submodule-branch-set&lt;/code&gt;. This script traverses all submodules, recording their current branch by creating a file in the superproject's &lt;code&gt;.git&lt;/code&gt; directory. The filename is a combination of the branch name of the superproject and the path to the submodule, and the file's content is the name of the branch the submodule is currently on.&lt;/p&gt;
&lt;/li&gt;
&lt;li&gt;
&lt;p&gt;After switching back to a previous branch in the superproject, run &lt;code&gt;git-submodule-branch-restore&lt;/code&gt;. This script goes through all submodules, looking for a corresponding file in the &lt;code&gt;.git&lt;/code&gt; directory. If it finds one, it reads the submodule's branch from the file and checks out the submodule to that branch.&lt;/p&gt;
&lt;/li&gt;
&lt;/ol&gt;
&lt;h3&gt;git-submodule-branch-set&lt;/h3&gt;
&lt;p&gt;This script records the current branch of the submodule when you switch branches in the superproject.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;#!/usr/bin/env python3
# git-submodule-branch-set

import os
import subprocess

# Get the list of all submodules in the current repository
submodules_output = subprocess.check_output(['git', 'config', '--file', '.gitmodules', '--get-regexp', 'path']).strip().decode('utf8')
submodules = [line.split()[1] for line in submodules_output.split('\n')]

# Get the current branch of the superproject
branch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).strip().decode('utf8')

for submodule in submodules:
    # Construct the filename where the submodule branch will be stored
    submodule_branch_file = os.path.join('.git', f'submodule_branch_{branch}_{submodule.replace(&amp;quot;/&amp;quot;, &amp;quot;_&amp;quot;)}')

    # Record the current branch of the submodule
    submodule_branch = subprocess.check_output(['git', '-C', submodule, 'rev-parse', '--abbrev-ref', 'HEAD']).strip().decode('utf8')
    with open(submodule_branch_file, 'w') as file:
        file.write(submodule_branch)
    print(f&amp;quot;Submodule '{submodule}' set to branch '{submodule_branch}'&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;git-submodule-branch-restore&lt;/h3&gt;
&lt;p&gt;This script restores the submodule to the recorded branch when you switch back to a previous branch.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-python&quot;&gt;#!/usr/bin/env python3
# git-submodule-branch-restore

import os
import subprocess

# Get the list of all submodules in the current repository
submodules_output = subprocess.check_output(['git', 'config', '--file', '.gitmodules', '--get-regexp', 'path']).strip().decode('utf8')
submodules = [line.split()[1] for line in submodules_output.split('\n')]

# Get the current branch of the superproject
branch = subprocess.check_output(['git', 'rev-parse', '--abbrev-ref', 'HEAD']).strip().decode('utf8')

for submodule in submodules:
    # Construct the filename where the submodule branch will be stored
    submodule_branch_file = os.path.join('.git', f'submodule_branch_{branch}_{submodule.replace(&amp;quot;/&amp;quot;, &amp;quot;_&amp;quot;)}')

    # If a file exists that records the branch of the submodule, checkout to that branch in the submodule
    if os.path.isfile(submodule_branch_file):
        with open(submodule_branch_file, 'r') as file:
            submodule_branch = file.read().strip()
        subprocess.check_call(['git', '-C', submodule, 'checkout', submodule_branch])
        print(f&amp;quot;Submodule '{submodule}' restored to branch '{submodule_branch}'&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Why I like Evernote more than Notion</title>
    <id>https://dr2050.postach.io/post/why-i-like-evernote-more-than-notion</id>
    <updated>2023-06-18T18:13:46.035000Z</updated>
    <published>2022-05-19T11:51:27Z</published>
    <link href="https://dr2050.postach.io/post/why-i-like-evernote-more-than-notion" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;[ &lt;a href=&quot;http://tinyurl.com/y3jnxzla&quot; rev=&quot;en_rl_none&quot;&gt;TinyUrl link to this note&lt;/a&gt; ]&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Notion has a whole bunch of concepts. There are lists! Which are not quite the same as pages, but they also are pages. But you can’t put text on them. And, it’s hard to put pages under them, even though lists only contain other pages. Also, you can’t just say &quot;I am going to list all the pages under this page in this page as a list.&quot; So it’s very powerful, and very flexible. And you can have links, and back links, and everything can be in multiple places, and… Didn’t I already go through this with Workflowy? It’s so amazing, it’s so flexible, it’s just like your mind, which is amazingly flexible and allows for massive complexity.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Enter Evernote, with its antiquated simple concepts. You have notebooks that have pages in them. You also can have notebook stacks, which can only contain notebooks. You cannot have notebook stacks of notebooks stacks of notebooks. You cannot put notebooks in other notebooks, nor can you put pages directly in notebook stacks. There is no way that I know of to get a list of pages inside a notebook in another page. Unless you want a link to the pages yourself.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;So the paradigm is extremely simple.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;So for MIDI Designer, for instance, I have a Notebook stack called MIDI Designer.  Then, inside that I have a notebook called MD tickets. And another notebook called MD tickets closed. And then I have another Notebook called MIDI Designer knowledge, or MIDI Designer K base. And then I have another Notebook called MIDI Designer marketing. If I was serious about marketing, that might become several notebooks. &lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;And so, Evernote is the ultimate trash bin, but it’s very organized for how to record information. And where information will be later. For instance, for my day job, I have another notebook under the Day-Job Stack called meetings. and another notebook called journal, which contains notes by week, mostly.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Somehow, the simple paradigm lines up nicely and keeps me from feeling overwhelmed and confused. Notion, on the other hand, is so flexible I can never figure out where to go next, and definitely not quickly.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;I should note that I do some things outside of Evernote. Or a lot of things. For instance, I use &lt;a href=&quot;https://todo.microsoft.com/tasks/&quot; rev=&quot;en_rl_none&quot;&gt;Microsoft To Do&lt;/a&gt; for my to do list. And that’s on top of my bullet journal that I keep in &lt;a href=&quot;https://notability.com/&quot; rev=&quot;en_rl_none&quot;&gt;Notability on iPad&lt;/a&gt; with pencil. And then I have my journal in &lt;a href=&quot;https://dayoneapp.com/&quot; rev=&quot;en_rl_none&quot;&gt;Day One&lt;/a&gt;. I should note that it's important to pick winners in other categories to avoid thrash. I had picked Wunderlist which became Microsoft To Do but... sniff.&lt;/div&gt;
&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;Update&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;Things I do with Evernote that Notion doesn't do (I think):&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;I pay Evernote to be able to email notes to my Evernote notebooks. &lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Evernote can publish individual notes, which is how you're reading this. &lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;I use Evernote to publish my blogs, including &lt;a href=&quot;https://maschineismygirlfriend.com/&quot; rev=&quot;en_rl_none&quot;&gt;this one&lt;/a&gt; via &lt;a href=&quot;http://postach.io&quot; rev=&quot;en_rl_none&quot;&gt;Postach.io&lt;/a&gt; and some that are critical to my business. It's not perfect, clearly.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;Things Evernote sucks at:&lt;/div&gt;&lt;ul&gt;&lt;li&gt;&lt;div&gt;Their document scanner on iOS is the worst, but you can use &lt;a href=&quot;https://apps.apple.com/us/app/genius-scan-pdf-scanner-app/id377672876&quot; rev=&quot;en_rl_none&quot;&gt;Genius Scan&lt;/a&gt;.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;Their Apple Pencil app also sucks but you can use any other.&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;They don't do great with code blocks, but at least they don't mangle things like OneNote&lt;/div&gt;&lt;/li&gt;&lt;li&gt;&lt;div&gt;I haven't used Evernote much for collaboration, so I don't know how it does. It ain't Google Docs, that's for sure.&lt;/div&gt;&lt;/li&gt;&lt;/ul&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Swift Watch and Run</title>
    <id>https://dr2050.postach.io/post/swift-watch-and-run</id>
    <updated>2023-06-18T18:13:01.044000Z</updated>
    <published>2019-04-22T11:23:33Z</published>
    <link href="https://dr2050.postach.io/post/swift-watch-and-run" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;p&gt;This is my Swift &quot;run on change&quot; watcher script.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-bash&quot;&gt;#!/bin/sh
# swiftWatchAndRun
if [ $# -ne 1 ]; then
    echo &amp;quot;Use like this:&amp;quot;
    echo &amp;quot;   $0 filename-to-watch&amp;quot;
    exit 1
fi
if which fswatch &amp;gt;/dev/null; then
    echo &amp;quot;Watching swift file $1&amp;quot;
    while true; do fswatch --one-event $1 &amp;gt;/dev/null &amp;amp;&amp;amp; echo &amp;quot;----------------&amp;quot;; echo `date +&amp;quot;%m-%d-%y %I:%M%p&amp;quot;`; echo &amp;quot;----------------&amp;quot; &amp;amp;&amp;amp; swift $1; sleep 0.1; done
else
    echo &amp;quot;You might need to run: brew install fswatch&amp;quot;
fi
&lt;/code&gt;&lt;/pre&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">WeakArray for the Last Time (Swift 4.2)</title>
    <id>https://dr2050.postach.io/post/weakarray-for-the-last-time-swift-4-2</id>
    <updated>2018-11-19T13:40:26.668000Z</updated>
    <published>2018-11-18T20:23:20Z</published>
    <link href="https://dr2050.postach.io/post/weakarray-for-the-last-time-swift-4-2" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;p&gt;I am obsessed with weak arrays. If you're trying to use multiple &quot;protocolized&quot; delegates, you need a weakly-held array of delegates.&lt;/p&gt;
&lt;p&gt;This one started with &lt;a href=&quot;https://www.objc.io/blog/2017/12/28/weak-arrays/&quot;&gt;this great article&lt;/a&gt; and expanded from there. Big thanks to Varindra Hart for the wise counsel as always.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;@objc public protocol Equalable: class {
    @objc func isEqual(_ object: Any?) -&amp;gt; Bool
}

/// Store AnyObject subclasses weakly
/// * Note: if you wish to use a protocol, it must:
///   - be marked with `@objc`
///   - have all methods marked with `@objc`
///   - refine Equalable
public struct WeakArray&amp;lt;Element: Equalable&amp;gt; {
    private var items: [WeakBox&amp;lt;Element&amp;gt;] = []

    public init(_ elements: [Element]? = nil) {
        guard let elements = elements else { return }
        items = elements.map { WeakBox($0) }
    }

    public mutating func append(_ newElement: Element) {
        let box = WeakBox(newElement)
        items.append(box)
    }

    public mutating func remove(_ element: Element) {
        items.removeAll { item in
            return item.unbox?.isEqual(element) ?? false
        }
    }

    public var unboxed: [Element] {
        let filtered = items.filter { $0.unbox != nil }
        return filtered.compactMap { $0.unbox }
    }

    public var boxedCount: Int {
        return items.count
    }
}

extension WeakArray: Collection {
    public var startIndex: Int { return items.startIndex }
    public var endIndex: Int { return items.endIndex }

    public subscript(_ index: Int) -&amp;gt; Element? {
        return items[index].unbox
    }

    public func index(after idx: Int) -&amp;gt; Int {
        return items.index(after: idx)
    }
}

private final class WeakBox&amp;lt;T: Equalable&amp;gt; {
    weak var unbox: T?
    init(_ value: T) {
        unbox = value
    }
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;&lt;a href=&quot;https://gist.github.com/drosenstark/e27f14eb43f834eaafca141434af3ae7&quot;&gt;GitHub Gist&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;The need to have your protocol conform to @objc is a bug in Swift. See the &lt;a href=&quot;https://stackoverflow.com/questions/48102270/swift-4-generic-conforming-to-anyobject-does-not-accept-a-protocol-conforming-t&quot;&gt;StackOverflow question&lt;/a&gt; about this.&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Modifiable: Modify and Assign without Temporary Variables</title>
    <id>https://dr2050.postach.io/post/modifiable-modify-and-assign-without-temporary-variables</id>
    <updated>2018-06-17T13:46:19.472000Z</updated>
    <published>2018-06-16T19:16:40Z</published>
    <link href="https://dr2050.postach.io/post/modifiable-modify-and-assign-without-temporary-variables" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;p&gt;This Protocol &amp;amp; Extension allow you to assign and modify all in one line.&lt;/p&gt;
&lt;p&gt;I've been meaning to write this for a long time. It's working in Swift 4.1. It's definitely a tiny bit tricky, definitely not necessary, and perhaps too cute to be worth it. But it is cute!&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;import UIKit

/// Modifiable, Dan Rosenstark 2018, inspired from:
/// https://medium.com/@victor.pavlychko/using-self-in-swift-class-extensions-6421dab02587
protocol Modifiable {}

extension NSObject: Modifiable {}

extension Modifiable {
    func modify(block: (Self)-&amp;gt;()) -&amp;gt; Self {
        block(self)
        return self
    }
}

/// examples
let view = UIView().modify { $0.backgroundColor = .green }
print(view.backgroundColor == UIColor.green)
&lt;/code&gt;&lt;/pre&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Xcodebuild: Valid Destinations on OSX?</title>
    <id>https://dr2050.postach.io/post/xcodebuild-valid-destinations-on-osx</id>
    <updated>2018-10-19T15:16:40.925000Z</updated>
    <published>2018-01-08T21:26:03Z</published>
    <link href="https://dr2050.postach.io/post/xcodebuild-valid-destinations-on-osx" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="osx" />
    <category term="xcode" />
    <content type="html">&lt;p&gt;To get a list of valid destinations, specify an erroneous key-value pair and xcodebuild will spit out the combinations that work.&lt;/p&gt;
&lt;h2&gt;List Destinations Command&lt;/h2&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;xcodebuild test -destination 'platform=iOS Simulator' -workspace Register.xcworkspace -scheme ThatTestTarget
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;Output Example&lt;/h2&gt;
&lt;p&gt;Available destinations for the &quot;ThatTestTarget&quot; scheme:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;{ platform:iOS Simulator, id:145A9B7E-B336-4819-8059-2FFEC408E05E, OS:11.1, name:iPad (5th generation) }
{ platform:iOS Simulator, id:69ABAF6F-ADA3-4E38-AC97-D71001447663, OS:9.3, name:iPad 2 }
{ platform:iOS Simulator, id:550E2F18-406D-4586-84BB-E48F1D704F27, OS:10.3.1, name:iPad Air }
{ platform:iOS Simulator, id:94734F1C-775F-40FA-9015-8196C08805EF, OS:11.1, name:iPad Air }
{ platform:iOS Simulator, id:1DB953DD-CD97-4EC7-8006-BCF01DF3E63F, OS:11.1, name:iPad Air 2 }
{ platform:iOS Simulator, id:DE3072DA-2E31-423D-9D77-220626F8B90A, OS:11.1, name:iPad Pro (9.7-inch) }
{ platform:iOS Simulator, id:3B5D18DB-13B5-4F28-B654-7D2ECDD1F6F0, OS:11.1, name:iPad Pro (10.5-inch) }
{ platform:iOS Simulator, id:A4225E3A-512C-4F42-ADD9-1E7E448C4D27, OS:11.1, name:iPad Pro (12.9-inch) }
{ platform:iOS Simulator, id:684FF1BA-8784-4B7C-B4E5-5231772F0FAC, OS:11.1, name:iPad Pro (12.9-inch) (2nd generation) }
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Change Colons for Equals Signs, Remove Spaces, Ignore the ID&lt;/p&gt;
&lt;p&gt;So if you want to use this destination:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;platform:iOS Simulator, id:684FF1BA-8784-4B7C-B4E5-5231772F0FAC, OS:11.1, name:iPad Pro (12.9-inch) (2nd generation)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Change the colons for commas, remove the spaces, remove the ID, so you get this string:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;platform=iOS Simulator,OS=11.1,name=iPad Pro (12.9-inch) (2nd generation)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Then the entire command would be:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;xcodebuild test -destination 'platform=iOS Simulator,OS=11.1,name=iPad Pro (12.9-inch) (2nd generation)' -workspace Register.xcworkspace -scheme ThatTestTarget
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;From my StackOverflow Answer &lt;a href=&quot;https://stackoverflow.com/a/47401178/8047&quot;&gt;here&lt;/a&gt;&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Square in Autolayout in Swift 3/4</title>
    <id>https://dr2050.postach.io/post/square-in-autolayout-in-swift-3</id>
    <updated>2017-12-31T01:43:41.347000Z</updated>
    <published>2017-12-13T03:54:46Z</published>
    <link href="https://dr2050.postach.io/post/square-in-autolayout-in-swift-3" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;Sometimes I marvel about how StackOverflow has been taken over by a zealous group of idiots who close questions at will. &lt;a href=&quot;https://stackoverflow.com/q/33178270/8047&quot;&gt;Here's today's example&lt;/a&gt;, and below is my answer, since I can't put it on the SO question itself.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;extension&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; constrainToSquareRelativeToView(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; view: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, multiplier: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;CGFloat&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(39, 42, 216);&quot;&gt;1.0&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;) {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;translatesAutoresizingMaskIntoConstraints&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;false&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; widthConstraint = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSLayoutConstraint&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(item: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, relatedBy: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;lessThanOrEqual&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, toItem: view, attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, multiplier: multiplier, constant: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(39, 42, 216);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        widthConstraint.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;priority&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; = .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;defaultLow&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; heightConstraint = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSLayoutConstraint&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(item: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, relatedBy: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;equal&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, toItem: view, attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, multiplier: multiplier, constant: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(39, 42, 216);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        heightConstraint.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;priority&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; = .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;defaultLow&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; squareConstraint = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSLayoutConstraint&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(item: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;height&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, relatedBy: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;equal&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, toItem: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;,    attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;width&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, multiplier: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(39, 42, 216);&quot;&gt;1.0&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, constant: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(39, 42, 216);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; centerX = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSLayoutConstraint&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(item: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;centerXWithinMargins&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, relatedBy: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSLayoutRelation&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;equal&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, toItem: view, attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;centerXWithinMargins&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, multiplier: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(39, 42, 216);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, constant:&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(39, 42, 216);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; centerY = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSLayoutConstraint&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(item: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;centerYWithinMargins&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, relatedBy: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSLayoutRelation&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;equal&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, toItem: view, attribute: .&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;centerYWithinMargins&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, multiplier: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(39, 42, 216);&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;, constant:&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(39, 42, 216);&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        view.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;addConstraints&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;([widthConstraint, heightConstraint, squareConstraint, centerX, centerY])&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;Here's my result (inside which I'm playing with a UICollectionView, but that's another story):&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/31c57f45-f9cc-427b-909e-3ec685a97e9a/c263a0ac-8ace-4035-84eb-24a94b843218.png&quot;  width=&quot;361&quot;/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">How I Survive on Any Unix (Bash)</title>
    <id>https://dr2050.postach.io/post/how-i-survive-on-unix</id>
    <updated>2019-09-20T05:24:13.128000Z</updated>
    <published>2017-12-05T18:55:54Z</published>
    <link href="https://dr2050.postach.io/post/how-i-survive-on-unix" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="unix" />
    <content type="html">&lt;div&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;If you must type it all&lt;/span&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;pre&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;export EDITOR&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;nano&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;PS1&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(94, 167, 2);&quot;&gt;'\h:\w\$ '&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;If you can copy and paste:&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;pre&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;line-height: normal; font-family: Monaco;&quot;&gt;export EDITOR&lt;/span&gt;&lt;span style=&quot;line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;line-height: normal; font-family: Monaco;&quot;&gt;nano&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;function parse_git_dirty {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;[[&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(181, 23, 0);&quot;&gt;$&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;(git status &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(3, 41, 216);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(94, 167, 2);&quot;&gt;/dev/nu&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;ll &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; tail &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;n1) &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;!=&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(94, 167, 2);&quot;&gt;&quot;nothing to commit, working tree clean&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;]]&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;&amp;&amp;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; echo &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(94, 167, 2);&quot;&gt;&quot;*&quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;function parse_git_branch {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;  git branch &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;--&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;no&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;color &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(3, 41, 216);&quot;&gt;2&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;&amp;gt;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(94, 167, 2);&quot;&gt;/dev/nu&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;ll &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;|&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; sed &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(94, 167, 2);&quot;&gt;'/^[^*]/d'&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;e &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(94, 167, 2);&quot;&gt;&quot;s/* \(.*\)/(\1$(parse_git_dirty))/&quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;export PS1&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(94, 167, 2);&quot;&gt;'\h:\[\033[1;33m\]\w\[\033[0m\]$(parse_git_branch)$ '&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;/pre&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Solution for No Optionals in Swift String Interpolation</title>
    <id>https://dr2050.postach.io/post/solution-for-no-optionals-in-swift-string-interpolation</id>
    <updated>2017-12-31T01:47:40.042000Z</updated>
    <published>2017-11-06T21:39:38Z</published>
    <link href="https://dr2050.postach.io/post/solution-for-no-optionals-in-swift-string-interpolation" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;This is probably a bad idea, but it's fun to consider (for a brief moment).&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 132, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;// Solution is reduced from here&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 132, 0);&quot;&gt;// &lt;/span&gt;&lt;a style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(19, 55, 255);&quot; href=&quot;https://github.com/T-Pham/NoOptionalInterpolation&quot;&gt;https://github.com/T-Pham/NoOptionalInterpolation&lt;/a&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 132, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;/// Anything that can be unwrapped.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;protocol&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; Unwrappable {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 132, 0);&quot;&gt;/// Returns the unwrapped value of the receiver.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; unwrap() -&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;Any&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;?&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;extension&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;Optional&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(79, 129, 135);&quot;&gt;Unwrappable&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 132, 0);&quot;&gt;/// Returns the unwrapped value of the `Optional`.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; unwrap() -&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;Any&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;? {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;switch&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;nil&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; unwrappable &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(79, 129, 135);&quot;&gt;Unwrappable&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;:&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; unwrappable.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(49, 89, 93);&quot;&gt;unwrap&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;()&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;case&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; any:&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; any&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;        }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;extension&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 132, 0);&quot;&gt;/// Creates an instance containing the unwrappable's representation.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(stringInterpolationSegment expr: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(79, 129, 135);&quot;&gt;Unwrappable&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;) {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162); text-decoration: underline;&quot;&gt;i&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;f&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; unwrapped = expr.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(49, 89, 93);&quot;&gt;unwrap&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;() {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(stringInterpolationSegment: unwrapped)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        } &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;&quot;nil&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)!&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;        }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;T&gt;(stringInterpolationSegment expr: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;Optional&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(79, 129, 135);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&gt;) {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(stringInterpolationSegment: expr &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(79, 129, 135);&quot;&gt;Unwrappable&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 132, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;/**&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 132, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt; Force the default behavior&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 132, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt; */&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;postfix&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;operator&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; *&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;public&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;postfix&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; *(optional: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;Optional&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;Any&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&gt;) -&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;String&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;optional&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; == &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;&quot;nil&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;&quot;nil&quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;&quot;Optional(\&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;optional&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;)\&quot;)&quot;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;br/&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">My Time/Datestamp Applescript</title>
    <id>https://dr2050.postach.io/post/my-time-datestamp-applescript</id>
    <updated>2023-06-22T21:28:03.403000Z</updated>
    <published>2017-10-13T17:34:52Z</published>
    <link href="https://dr2050.postach.io/post/my-time-datestamp-applescript" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;h2&gt;Original&lt;/h2&gt;
&lt;p&gt;Here's the .scpt file that will open in Script Editor on Mac. You can set it up as a keystroke (CMD-Shift-D for me) in &lt;a href=&quot;https://redsweater.com/fastscripts/&quot;&gt;FastScripts&lt;/a&gt; (free for up to 10 scripts).&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-applescript&quot;&gt;-- yar2050 (Dan Rosenstark)'s favorite date format 
-- 2017-08-03 update
on fillInZero(int)
    if (int &amp;lt; 10) then set int to &amp;quot;0&amp;quot; &amp;amp; int
    return int as string
end fillInZero

set theDate to (current date)
set theHour to fillInZero(hours of (theDate) as integer)
set theMinutes to fillInZero(minutes of (theDate) as integer)
tell theDate to get (its month as integer)
set theMonth to fillInZero(result)
set theDay to fillInZero(day of theDate)
tell (theDate) to get (its year as integer) &amp;amp; &amp;quot;-&amp;quot; &amp;amp; (theMonth) &amp;amp; &amp;quot;-&amp;quot; &amp;amp; theDay &amp;amp; &amp;quot; &amp;quot; &amp;amp; (theHour) &amp;amp; &amp;quot;:&amp;quot; &amp;amp; theMinutes
set date_ to (result as string)
tell application &amp;quot;System Events&amp;quot;
    set frontmostApplication to name of the first process whose frontmost is true
end tell

tell application frontmostApplication
    delay 0.2 -- I have no idea why this is necessary
    activate
    tell application &amp;quot;System Events&amp;quot;
        if (frontmostApplication = &amp;quot;Evernote&amp;quot;) then
            keystroke &amp;quot;h&amp;quot; using {command down, shift down}
            keystroke &amp;quot;b&amp;quot; using {command down}
            keystroke date_
            keystroke &amp;quot;b&amp;quot; using {command down}
        else
            keystroke date_
        end if
    end tell
end tell
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;2023-06 - Update&lt;/h2&gt;
&lt;p&gt;Working with ChatGPT we came up with this. Much better.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-applescript&quot;&gt;set formattedDate to do shell script &amp;quot;date '+%Y-%m-%d %H:%M'&amp;quot;

tell application &amp;quot;System Events&amp;quot;
    keystroke formattedDate
end tell

-- display alert &amp;quot;AppleScript is working&amp;quot; message &amp;quot;Date: &amp;quot; &amp;amp; formattedDate
&lt;/code&gt;&lt;/pre&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Just Because It Compiles: More Notes from Swift 3 Upgrade</title>
    <id>https://dr2050.postach.io/post/just-because-it-compiles-more-notes-from-swift-3-upgrade</id>
    <updated>2017-10-05T15:14:54.043000Z</updated>
    <published>2017-10-05T13:46:24Z</published>
    <link href="https://dr2050.postach.io/post/just-because-it-compiles-more-notes-from-swift-3-upgrade" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="swift3" />
    <category term="xcode" />
    <content type="html">&lt;p&gt;This is the method signature for the superclass:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;public func sendRequest&amp;lt;T: Request&amp;gt;(request: T, handler: (Result&amp;lt;T.Response, Error&amp;gt;) -&amp;gt; Void) -&amp;gt; NSURLSessionDataTask? {
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and this is in the subclass&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;override func sendRequest&amp;lt;T : RequestType&amp;gt;(request: T, handler: (Result&amp;lt;T.Response, PayLib.Error&amp;gt;) -&amp;gt; Void) -&amp;gt; NSURLSessionDataTask? {
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and in Swift 3 this got translated to be the same, except for some minor changes:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;open func sendRequest&amp;lt;T: Request&amp;gt;(_ request: T, handler: @escaping (Result&amp;lt;T.Response, Error&amp;gt;) -&amp;gt; Void) -&amp;gt; URLSessionDataTask? {
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Subclass:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;override func sendRequest&amp;lt;T : RequestType&amp;gt;(_ request: T, handler: @escaping (Result&amp;lt;T.Response, PayLib.Error&amp;gt;) -&amp;gt; Void) -&amp;gt; URLSessionDataTask? ```
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Now that was good enough for Swift 2. In Swift 3, a call to this method resulted in a crash with no interesting information.&lt;/p&gt;
&lt;p&gt;The reason was the mismatch between RequestType and Request (RequestType is the protocol which the Request Protocol extends). So the fix was merely to have the signatures match exactly.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;override func sendRequest&amp;lt;T : Request&amp;gt;(_ request: T, handler: @escaping (Result&amp;lt;T.Response, PayLib.Error&amp;gt;) -&amp;gt; Void) -&amp;gt; URLSessionDataTask? {
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;I'm not sure that there's a point here, except that: Just because Xcode likes it, it compiles and it works in Swift 2 doesn't mean that it won't cause a runtime crash in Swift 3. Or something like that: check everything by hand/eye!&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Change Shortcuts for Next and Previous Tab in Safari, Mac</title>
    <id>https://dr2050.postach.io/post/change-shortcuts-for-next-and-previous-tab-in-safari-mac</id>
    <updated>2017-10-04T18:19:47.470000Z</updated>
    <published>2017-10-04T18:19:13Z</published>
    <link href="https://dr2050.postach.io/post/change-shortcuts-for-next-and-previous-tab-in-safari-mac" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="osx" />
    <content type="html">&lt;div&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/34487b51-8b47-4278-b977-55eb1b63bcc8/48216a66-ccdc-44b6-bc43-bbb8d02e0e1b.png&quot; /&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Show Only  Apps in Search Results, iOS 11</title>
    <id>https://dr2050.postach.io/post/i-want-my-ipad-and-iphone-to-show-apps-first-when-i-hit-cmd-space-or-slide-down-for-search-this-is-the-setting-to-change</id>
    <updated>2017-09-30T13:16:54.399000Z</updated>
    <published>2017-09-30T12:58:00Z</published>
    <link href="https://dr2050.postach.io/post/i-want-my-ipad-and-iphone-to-show-apps-first-when-i-hit-cmd-space-or-slide-down-for-search-this-is-the-setting-to-change" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="ios11" />
    <content type="html">&lt;div&gt;I want my iPad (and iPhone) to show Apps first when I hit CMD-space or slide down for search. This is the setting to change.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/74259575-21f5-49f1-b180-cde1f1eeb74d/716eabc5-3456-4cf0-921a-12886ec0db67.jpg&quot;  title=&quot;Attachment&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;And this is what search results look like without all the clutter.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/74259575-21f5-49f1-b180-cde1f1eeb74d/5ff13df7-626b-4d72-8110-d5e11d4dbf5a.jpg&quot;  title=&quot;Attachment&quot; width=&quot;2048&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Optional Block Parameters and Fix-Its</title>
    <id>https://dr2050.postach.io/post/optional-block-parameters-and-fix-its</id>
    <updated>2017-09-19T10:38:31.795000Z</updated>
    <published>2017-09-19T10:19:17Z</published>
    <link href="https://dr2050.postach.io/post/optional-block-parameters-and-fix-its" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="swift3" />
    <category term="xcode" />
    <content type="html">&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Consider this fix-it:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;span style=&quot;&quot;&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/9f8dc2cc-9af4-4fc0-aaa3-7b66c63b66d9/59b7874c-f294-48c4-8edb-418c961a215f.png&quot; /&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Now if this happens to you -- as it happened to me -- as part of a massive code conversion to Swift 3, you might be tempted to follow the fix it. Then your code would read like this:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;blockWithOptionalParam: ((&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;?)-&gt;())?&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;assignBlockWithNonOptionalParameter() {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;tempBlock: (&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)-&gt;() = {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;&quot;count of string&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;$0.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;appending&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;&quot;appendMe&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0); font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(79, 129, 135);&quot;&gt;blockWithOptionalParam&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;= tempBlock&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;! ((&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;?) -&gt; ())&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;This might be fine, but would result in a crash if you &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-weight: bold;&quot;&gt;ever&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; passed a nil to your blockWithOptionalParam. The only safe thing to do, really, is to ignore the fix it and handle the optional properly:&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;assignBlockWithNonOptionalParameter() {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;tempBlock: (&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;?)-&gt;() = {&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;guard&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;text = $0&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;{&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;}&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;       &lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;&quot;count of string&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;text.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(62, 30, 129);&quot;&gt;appending&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;&quot;appendMe&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(209, 47, 27);&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0); font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(79, 129, 135);&quot;&gt;blockWithOptionalParam&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;= tempBlock&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold; font-size: 14px;&quot;&gt;So What?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;For some other cases -- and I'm not sure what the difference is, yet -- Xcode always suggests casting the block rather than fixing the optional in the block. I'm unable to show this example in the lab, but it does show up in the codebase I'm working on currently.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Enabling Command-Line Pipe for Atom on OS X</title>
    <id>https://dr2050.postach.io/post/enabling-command-line-pipe-for-atom-on-osx</id>
    <updated>2018-02-15T16:55:30.034000Z</updated>
    <published>2017-09-12T10:42:58Z</published>
    <link href="https://dr2050.postach.io/post/enabling-command-line-pipe-for-atom-on-osx" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="osx" />
    <content type="html">&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Pipe to Atom Command-Line Tools&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;This allows you to pipe from the command line to Atom. Simplest example:&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;ls -l | atom&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;Set It Up&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Make sure you've run File -&gt; Install Shell Commands first.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/2cf984d5-c67a-4f17-8eb6-f4bccb9c50bf/6b6e62d1-6a47-43fa-9ad3-6d3745dd3df3.png&quot;  style=&quot;orphans: 2; widows: 2;&quot;/&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Edit your /usr/local/bin/atom (in Atom, for instance):&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;atom /usr/local/bin/atom&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Below this code:&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;if [ $REDIRECT_STDERR ]; then&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;  exec 2&gt; /dev/null&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;insert this code&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;if [ ! -t 0 ]; then&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;   TEMPFILE=&quot;$(mktemp)&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;   cat &gt; &quot;$TEMPFILE&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;   set &quot;$TEMPFILE&quot; &quot;$@&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;fi&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Save the file and now piping should work.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;This comment is also &lt;a href=&quot;https://github.com/atom/atom/pull/11184#issuecomment-315102061&quot;&gt;on GitHub here&lt;/a&gt;.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;hr/&gt;&lt;b&gt;2018-02-15: Update&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;This does tend to break from time to time (perhaps on Atom update?). You'll need to reapply.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;* osx os x macos&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Breakpoint Swift Deinit in Xcode</title>
    <id>https://dr2050.postach.io/post/breakpoint-swift-deinit-in-xcode</id>
    <updated>2017-09-12T10:51:18.625000Z</updated>
    <published>2017-09-12T09:06:01Z</published>
    <link href="https://dr2050.postach.io/post/breakpoint-swift-deinit-in-xcode" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="swift" />
    <category term="xcode" />
    <content type="html">&lt;div&gt;&lt;hr/&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;Setting up the Breakpoint&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;It's actually &lt;b&gt;very&lt;/b&gt; simple to breakpoint the &lt;font face=&quot;Andale Mono&quot;&gt;deinit&lt;/font&gt; method of a Swift class. Given a class called Test47, the symbolic breakpoint merely looks like this:&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/8411811d-e9aa-4e92-9f2f-4cde0193c583/d799007d-4c27-4b73-a41a-193d653d5072.png&quot; /&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;And that's about it.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;b&gt;Notes&lt;/b&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;font color=&quot;#ff2600&quot;&gt;If there is no body to your &lt;span style=&quot;font-family: 'Andale Mono';&quot;&gt;deinit&lt;/span&gt; method, the breakpoint will not fire (it gets optimized out or something similar).&lt;/font&gt;&lt;/li&gt;&lt;li&gt;There is no difference in syntax, for the Xcode symbolic breakpoints, between class and instance methods.&lt;/li&gt;&lt;li&gt;There are no &lt;font face=&quot;Andale Mono&quot;&gt;deinit&lt;/font&gt; methods for structs, so your SOL on that one.&lt;br/&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Swift 3.x Calls Objective-C</title>
    <id>https://dr2050.postach.io/post/swift-3-x-calls-objective-c</id>
    <updated>2017-11-13T20:19:30.762000Z</updated>
    <published>2017-09-08T15:09:47Z</published>
    <link href="https://dr2050.postach.io/post/swift-3-x-calls-objective-c" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Maybe you or a colleague named a constant with &lt;/span&gt;&lt;a style=&quot;font-size: 14px;&quot; href=&quot;https://en.wikipedia.org/wiki/PascalCase&quot;&gt;PascalCase&lt;/a&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; in an Objective-C method (class or  like this:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);&quot;&gt;+ (&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(52, 149, 175); background-color: rgba(255, 255, 255, 0);&quot;&gt;UIColor&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);&quot;&gt; *)SKDarkBlue;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;and in Swift 2, you could call it easily with &lt;/span&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(41, 94, 153);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;.checkStateBand.backgroundColor &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(66, 122, 179);&quot;&gt;UIColor&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;.SKDarkBlue;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;But in Swift 3, the casing is automatically changed for you... &lt;sarcasm&gt;isn't that nice!?&lt;/sarcasm&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(41, 94, 153);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;.checkStateBand.backgroundColor &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(217, 113, 0);&quot;&gt;=&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(66, 122, 179);&quot;&gt;UIColor&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco;&quot;&gt;.skDarkBlue;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;This example is great because you can see what happens to two initial caps.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;What if it's just one?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);&quot;&gt;- (&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(4, 51, 255); background-color: rgba(255, 255, 255, 0);&quot;&gt;void&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0); background-color: rgba(255, 255, 255, 0);&quot;&gt;) FirstCapMethod;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;looks like this in Swift 3:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(52, 149, 175);&quot;&gt;ObjCObject&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(52, 149, 175);&quot;&gt;firstCapMethod&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt;()&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Fun!&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold; font-size: 14px;&quot;&gt;Does Your Constant End in Notification?&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Objective-C Notification&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;extern&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(112, 61, 170);&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; * &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;const&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; SKMagTekSwiperDisconnectedNotification;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Gets called like this from Swift&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;&quot;&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(186, 45, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(0, 0, 0);&quot;&gt; someNotification = NSNotification.Name.SKMagTekSwiperDisconnected&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Swift and Object-C Interop, Simplest Possible Example</title>
    <id>https://dr2050.postach.io/post/swift-and-object-c-interop-simplest-possible-example</id>
    <updated>2017-09-08T15:27:07.182000Z</updated>
    <published>2017-09-05T16:09:26Z</published>
    <link href="https://dr2050.postach.io/post/swift-and-object-c-interop-simplest-possible-example" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;p&gt;Start with a Single View App (Swift) in Xcode 9 Beta 6 called &lt;code&gt;SwiftObjCInterop&lt;/code&gt;.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2&gt;Swift Calls Objective-C&lt;/h2&gt;
&lt;h3&gt;Create an Objective-C Class&lt;/h3&gt;
&lt;p&gt;Create an Objective-C class called &lt;code&gt;ObjCObject&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/eeb6ffbb-676e-40e9-ae00-45a510b74137/ed16df4c-05af-4546-9a0c-5838ea5e15c6.png&quot;  width=&quot;529&quot;/&gt;&lt;/p&gt;
&lt;p&gt;This will automatically give you the Bridging Header to call the Objective-C from Swift (that was easy!):&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/eeb6ffbb-676e-40e9-ae00-45a510b74137/90fe4507-678c-4fbf-afc3-377f76a907e5.png&quot; /&gt;&lt;/p&gt;
&lt;p&gt;Select &lt;strong&gt;Create Bridging Header&lt;/strong&gt; which will produce the file &lt;code&gt;SwiftObjCInterop-Bridging-Header&lt;/code&gt;&lt;/p&gt;
&lt;h3&gt;Add a Method to &lt;code&gt;ObjCObject&lt;/code&gt;&lt;/h3&gt;
&lt;p&gt;Add a method like this in your .m file&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;- (void) test {
    NSLog(@&amp;quot;Yes we are ObjCObject and we are testing&amp;quot;);
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and this in your .h&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;- (void) test;
&lt;/code&gt;&lt;/pre&gt;

&lt;h3&gt;Add ObjCObject to your Bridging Header&lt;/h3&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;#import &amp;quot;ObjCObject.h&amp;quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;Test Swift Calls Objective-C&lt;/h2&gt;
&lt;p&gt;Put this in your &lt;code&gt;viewDidLoad&lt;/code&gt;:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;ObjCObject().test()
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Run the project. Now Swift calls Objective-C.&lt;/p&gt;
&lt;hr /&gt;
&lt;h2&gt;Objective-C Calls Swift&lt;/h2&gt;
&lt;p&gt;This is slightly trickier in an existing project, but in a new project there are no issues.&lt;/p&gt;
&lt;p&gt;Include this in your &lt;code&gt;ViewController.swift&lt;/code&gt; file:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;@objc(testSwift)
func testSwift() {
    print(&amp;quot;yes ViewController is printing&amp;quot;)
}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;For some reason, you need the &lt;code&gt;@objC&lt;/code&gt; tag to be able to see your method from Objective-C.&lt;/p&gt;
&lt;p&gt;Include this import in your .m file:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;#import &amp;quot;SwiftObjCInterop-Swift.h&amp;quot;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And add this to your &lt;code&gt;test&lt;/code&gt; method in your Objective-C class:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;ViewController *vc = [[ViewController alloc] init];
[vc testSwift];
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;That's it.&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Using Markdown with Postach.io</title>
    <id>https://dr2050.postach.io/post/test-with-markdown</id>
    <updated>2017-09-12T14:00:36.276000Z</updated>
    <published>2017-08-21T15:03:22Z</published>
    <link href="https://dr2050.postach.io/post/test-with-markdown" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="postachio" />
    <content type="html">&lt;h2&gt;Hello World!!!&lt;/h2&gt;
&lt;p&gt;This HTML is highlighted with &lt;a href=&quot;http://prismjs.com/#basic-usage&quot;&gt;Prism&lt;/a&gt; using code marks for the highlighting like &lt;code&gt;language-html&lt;/code&gt;&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-html&quot;&gt;&amp;lt;!DOCTYPE html&amp;gt;
&amp;lt;html&amp;gt;
&amp;lt;head&amp;gt;
   ...
   &amp;lt;link href=&amp;quot;themes/prism.css&amp;quot; rel=&amp;quot;stylesheet&amp;quot; /&amp;gt;
&amp;lt;/head&amp;gt;
&amp;lt;body&amp;gt;
   ...
   &amp;lt;script src=&amp;quot;prism.js&amp;quot;&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;/body&amp;gt;
&amp;lt;/html&amp;gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;h2&gt;Why Bother?&lt;/h2&gt;
&lt;p&gt;I do love my work on &lt;a href=&quot;/post/code-highlighting-in-evernote-kinda&quot;&gt;code highlighting in Evernote&lt;/a&gt;. But this markdown stuff may be cooler? Hard to decide. With Markdown, it's definitely more flexible to pop out to a text editor and then back in.&lt;/p&gt;
&lt;p&gt;[Testing edit from iPad... just added this]&lt;/p&gt;
&lt;h2&gt;Are there extra lines or not?&lt;/h2&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;let stringSet = Set([&amp;quot;car&amp;quot;, &amp;quot;boat&amp;quot;, &amp;quot;bike&amp;quot;, &amp;quot;toy&amp;quot;])
let stringArray = stringSet.sorted()

print(stringArray)
// will print [&amp;quot;bike&amp;quot;, &amp;quot;boat&amp;quot;, &amp;quot;car&amp;quot;, &amp;quot;toy&amp;quot;]
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Okay, the extra lines are only there if you switch the format using &lt;strong&gt;Make Plain Text.&lt;/strong&gt; Do &lt;strong&gt;NOT&lt;/strong&gt; use Make Plain Text, and always use Simplify Formatting&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;br /&gt;
&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/9435e5ef-a9e7-4937-92b6-86a0fe06b159/dfef82fe-0e65-44f9-8374-caad4ba8d225.png&quot;  title=&quot;Attachment&quot;/&gt;&lt;br /&gt;
&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;&lt;BR&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/9435e5ef-a9e7-4937-92b6-86a0fe06b159/e74333f9-00c7-4698-afd0-5d0c54b0c3e9.png&quot;  title=&quot;Attachment&quot;/&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/9435e5ef-a9e7-4937-92b6-86a0fe06b159/b246bac9-743b-45ba-a001-5524e67abcc7.png&quot;  title=&quot;Attachment&quot;/&gt;&lt;/p&gt;
&lt;h2&gt;What About Embeds?&lt;/h2&gt;
&lt;p&gt;Will Postachio deal with the embeds, still?&lt;/p&gt;
&lt;p&gt;&lt;script src=&quot;http://br.js&quot;&gt;&lt;/script&gt;&lt;/p&gt;
&lt;p&gt;[So this embed got removed because I edited this note on iPad... so that's an issue. Maybe a big issue?]&lt;/p&gt;
&lt;p&gt;OMG that's absolutely awesome. Which means you could also do iframes and probably even &lt;b&gt;random html&lt;/b&gt;.&lt;/p&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Lazy Array in Swift</title>
    <id>https://dr2050.postach.io/post/lazy-array-in-swift</id>
    <updated>2017-08-19T19:58:17.791000Z</updated>
    <published>2017-08-19T17:07:09Z</published>
    <link href="https://dr2050.postach.io/post/lazy-array-in-swift" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="swift3" />
    <category term="swift" />
    <category term="generics" />
    <content type="html">&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;Obviously if you google &quot;lazy array in Swift,&quot; you'll find out &lt;a href=&quot;https://marcosantadev.com/swift-arrays-holding-elements-weak-references/&quot;&gt;the right way to do this&lt;/a&gt;, which uses &lt;span style=&quot;font-family: 'Andale Mono';&quot;&gt;NSPointerArray&lt;/span&gt; and whatever else. As you should.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;But sometimes you want to make your own to see how far you can get in half an hour with generics. Here's my naive implementation.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; Foundation&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; WeakWrapper&lt;T: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(97, 34, 174);&quot;&gt;AnyObject&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;weak&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; thing: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;?&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; thing:&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;) {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;thing&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; = thing&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;struct&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; WeakArray&lt;T: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(97, 34, 174);&quot;&gt;AnyObject&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&gt; : &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(97, 34, 174);&quot;&gt;Sequence&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; array: [&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(60, 130, 139);&quot;&gt;WeakWrapper&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&gt;] = []&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; count: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;objects&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;count&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; }&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; objects: [&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;]) {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(41, 76, 80);&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(objects)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; objects: [&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;] {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; retVal: [&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;?] = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;map&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; { $0.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;thing&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; != &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; ? $0.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;thing&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; : &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; }&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; retVal.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;flatMap&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; { $0 }&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;        }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;mutating&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; append(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; object: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;) {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(60, 130, 139);&quot;&gt;WeakWrapper&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(object))&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;mutating&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; append(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; objects: [&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;]) {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;append&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(contentsOf: objects.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;map&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; { &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(60, 130, 139);&quot;&gt;WeakWrapper&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;($0) })&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;mutating&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; compress() {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;array&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;filter&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;{ $0.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;thing&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; != &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; }&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(30, 148, 33);&quot;&gt;// MARK: - Sequence Protocol methods &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;typealias&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; Iterator = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;IndexingIterator&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;Array&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&gt;&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; makeIterator() -&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;Iterator&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;objects&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;makeIterator&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;()&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; firstObject = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(97, 34, 174);&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(string: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(200, 27, 19);&quot;&gt;&quot;one&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; things = &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;WeakArray&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;([&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;firstObject&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;, &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(97, 34, 174);&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(string: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(200, 27, 19);&quot;&gt;&quot;two&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;), &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(97, 34, 174);&quot;&gt;NSString&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(string: &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(200, 27, 19);&quot;&gt;&quot;three&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;)])&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;things&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;count&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;for&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; thing &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;in&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;things&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(200, 27, 19);&quot;&gt;&quot;Just one &lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(200, 27, 19);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;thing&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(200, 27, 19);&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;}&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt; &lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;things&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(41, 76, 80);&quot;&gt;compress&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;()&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt; Of course, I did have to look some stuff up, particularly to understand how &lt;span style=&quot;font-weight: bold;&quot;&gt;easy&lt;/span&gt; Sequence was to implement (since I already have an array).&lt;/font&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Method Selection in Swift</title>
    <id>https://dr2050.postach.io/post/method-selection-in-swift</id>
    <updated>2017-08-19T18:22:50.388000Z</updated>
    <published>2017-08-19T00:44:08Z</published>
    <link href="https://dr2050.postach.io/post/method-selection-in-swift" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;When I was growing up, methods were selected based &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-weight: bold;&quot;&gt;solely &lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;on the stuff on the right side of the equals sign. Not so in Swift. Consider this example.&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; ThingWithTwoSameNamedMethods {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; doIt() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; h: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(195, 89, 0);&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(88, 126, 168);&quot;&gt;doIt&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(88, 126, 168);&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(232, 35, 0);&quot;&gt;&quot;thank you for calling outer doit &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(232, 35, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;h&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(232, 35, 0);&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0); font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; doIt() -&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(195, 89, 0);&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;32&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0); font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(195, 89, 0);&quot;&gt;Void&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(195, 89, 0);&quot;&gt;ThingWithTwoSameNamedMethods&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(88, 126, 168);&quot;&gt;doIt&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; someInt: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(195, 89, 0);&quot;&gt;Int&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(195, 89, 0);&quot;&gt;ThingWithTwoSameNamedMethods&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(88, 126, 168);&quot;&gt;doIt&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; sum = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(195, 89, 0);&quot;&gt;ThingWithTwoSameNamedMethods&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;().&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(88, 126, 168);&quot;&gt;doIt&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;() + &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; font-variant-ligatures: no-common-ligatures; color: rgb(54, 86, 138);&quot;&gt;4&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;If this doesn't scare you, it should, because like most things in Swift: if it's compiling, it's wonderful. But if it's not compiling, for any reason, method selection and typing information is just not there... and you cannot infer it.&lt;/span&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Code Blocks in Postachio</title>
    <id>https://dr2050.postach.io/post/code-blocks-in-postachio</id>
    <updated>2017-09-12T14:10:20.669000Z</updated>
    <published>2017-08-17T23:06:31Z</published>
    <link href="https://dr2050.postach.io/post/code-blocks-in-postachio" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;My final CSS (which is linked from this blog):&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco; font-size: 14px;&quot;&gt;/** this is for the markdown stuff **/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(112, 80, 214); font-family: Monaco;&quot;&gt;:not&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;pre&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;)&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;&gt;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;code&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;*=&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(94, 167, 2); font-family: Monaco;&quot;&gt;&quot;language-&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;],&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;pre&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;*=&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(94, 167, 2); font-family: Monaco;&quot;&gt;&quot;language-&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;border&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;1px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;solid&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;gray&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;border&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;radius&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;5px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;#ffffe0&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style=&quot;font-family: Monaco; color: rgb(51, 51, 51);&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style=&quot;font-family: Monaco; color: rgb(51, 51, 51);&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco; font-size: 14px;&quot;&gt;/** non-markdown background and border **/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;*=&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(94, 167, 2); font-family: Monaco;&quot;&gt;&quot;box-sizing: border-box;&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;#ffffe0&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;border&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;1px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;solid&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;gray&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;   &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;border&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;radius&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;5px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style=&quot;font-family: Monaco; color: rgb(51, 51, 51);&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco; font-size: 14px;&quot;&gt;/** non-markdown indention **/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;*=&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(94, 167, 2); font-family: Monaco;&quot;&gt;&quot;box-sizing: border-box;&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;margin&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;0px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;padding&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;5px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco;&quot;&gt;!important&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;overflow&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;auto&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;white-space&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; pre&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;-&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;wrap;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style=&quot;font-family: Monaco; color: rgb(51, 51, 51);&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco; font-size: 14px;&quot;&gt;/** non-markdown line-height consistency **/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;*=&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(94, 167, 2); font-family: Monaco;&quot;&gt;&quot;box-sizing: border-box;&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;*=&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(94, 167, 2); font-family: Monaco;&quot;&gt;&quot;box-sizing: border-box;&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;[&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;style&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;*=&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(94, 167, 2); font-family: Monaco;&quot;&gt;&quot;box-sizing: border-box;&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;]&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;span&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;  {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;line-height&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;15px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;14px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; Monaco&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; Menlo&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; Consolas&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;monospace&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style=&quot;font-family: Monaco; color: rgb(51, 51, 51);&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;.posts &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;.item .post-content &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;.posts &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;.item .post-content &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;,&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;.post-content &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;line-height&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;1em&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco;&quot;&gt;!important&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;.25em&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;margin-bottom&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;.25em&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;padding-top&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;0px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;  &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;padding-bottom&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;0px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style=&quot;font-family: Monaco; color: rgb(51, 51, 51);&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;.post-content &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;margin&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;1px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco;&quot;&gt;!important&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;padding&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;1px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco;&quot;&gt;!important&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style=&quot;font-family: Monaco; color: rgb(51, 51, 51);&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco; font-size: 14px;&quot;&gt;/** markdown **/&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;.post-content &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;p&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;background-color&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;white&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;line-height&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;1em&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco;&quot;&gt;!important&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;margin-top&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;.5em&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco;&quot;&gt;!important&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;margin-bottom&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;1em&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(161, 108, 0); font-family: Monaco;&quot;&gt;!important&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;padding&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;0px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br style=&quot;font-family: Monaco; color: rgb(51, 51, 51);&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;.posts &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;h3&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;,&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;div&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;.post-content &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;h3&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;position&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;relative&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;padding&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;12.5px&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;margin&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;0&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;font-size&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;1&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;55&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;rem;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;font-family&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(94, 167, 2); font-family: Monaco;&quot;&gt;'Roboto'&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;font-weight&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;300&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(41, 94, 153); font-family: Monaco;&quot;&gt;color&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(217, 113, 0); font-family: Monaco;&quot;&gt;:&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; color: rgb(3, 41, 216); font-family: Monaco;&quot;&gt;#0e3029&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Monaco; color: rgb(51, 51, 51); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Which works with &lt;a href=&quot;http://blog.dr2050.com/post/code-highlighting-in-evernote-kinda&quot;&gt;this solution in Evernote&lt;/a&gt; and &lt;a href=&quot;http://blog.dr2050.com/post/test-with-markdown&quot;&gt;this other solution using Markdown in Postachio&lt;/a&gt; (make sure to use languages like language-swift for your code blocks to activate Prism).&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Also note &lt;a href=&quot;http://elliot.land/post/code-coloring-in-postach-io&quot;&gt;Elliot's solution here&lt;/a&gt;, which attacks this whole problem from another side.&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Swift 2 to 3, Method Calls, Magic First Parameters &amp;amp; Automatic Conversion Woes</title>
    <id>https://dr2050.postach.io/post/swift-2-to-3-method-calls-magic-first-parameters-and-automatic-conversion-woes</id>
    <updated>2017-08-22T01:17:07.104000Z</updated>
    <published>2017-08-16T18:36:14Z</published>
    <link href="https://dr2050.postach.io/post/swift-2-to-3-method-calls-magic-first-parameters-and-automatic-conversion-woes" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;h2&gt;Swift 2 Calling Swift 2&lt;/h2&gt;
&lt;p&gt;Consider these two methods in Swift 2:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;func doThis(thing: AnyObject) {}

func doThisThing(thing thing: AnyObject) {}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;are called like this in Swift 2.&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;doThis(&amp;quot;&amp;quot;)

doThisThing(thing: &amp;quot;&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The first parameter in the doThis method cannot be named by the caller.&lt;/li&gt;
&lt;li&gt;Whether the method name ends in the first parameter name or not, the behavior doesn't change.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Swift 2 Calling Objective-C&lt;/h2&gt;
&lt;p&gt;Here are two methods in Objective-C:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;- (void) doIt:(NSObject *)thing;

- (void) doThisThing:(NSObject *)thing;
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;Both of these methods get called without their first parameter name from Swift 2:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;someObjcObject.doIt(&amp;quot;&amp;quot;)

someObjcObject.doThisThing(&amp;quot;&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;First parameter name is not used.&lt;/li&gt;
&lt;li&gt;The method name is the same as the method name in Objective-C.&lt;/li&gt;
&lt;li&gt;This is true even if the method end in an obvious parameter name, like &quot;doThisWithThing&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Objective-C Calling Swift 2&lt;/h2&gt;
&lt;p&gt;The method name is the same as that seen in Swift unless you've doubled up on the parameter name as in the above example. So:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;func doThis(thing: AnyObject) {}

func doThisThing(thing thing: AnyObject) {}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;results in this calling code in Objective-C (note the altered method name in the second example):&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;[vc doThis:@&amp;quot;&amp;quot;];

[vc doThisThingWithThing:@&amp;quot;&amp;quot;];
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;The first method doesn't change even if we use an underscore in the Swift method declaration:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;func doThis(_ thing: AnyObject) {}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;The method names translate normally&lt;/li&gt;
&lt;li&gt;Doubled-up parameter names get added to the method name in Objective-C with the conjunction &quot;with&quot;&lt;/li&gt;
&lt;/ul&gt;
&lt;h2&gt;Changes in Swift 3&lt;/h2&gt;
&lt;p&gt;There is no automatic removal of the first parameter name, so:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;func doThisThing(thing: AnyObject) {}
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;gets called like this:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;doThisThing(thing: &amp;quot;&amp;quot; as AnyObject)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;If you want to remove the first parameter label for callers, you can use an underscore, of course.&lt;/p&gt;
&lt;h2&gt;Weird Automatic Conversion to Swift 3&lt;/h2&gt;
&lt;p&gt;So this converted just fine:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;func doThis(thing: AnyObject) {}

func doThisThing(thing thing: AnyObject) {}

// calling code
doThisThing(thing: &amp;quot;what&amp;quot;)
doThis(&amp;quot;what&amp;quot;)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;and became this in Swift 3&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;func doThisThing(thing: AnyObject) {}

func doThis(_ thing: AnyObject) {}

// calling code
doThisThing(thing: &amp;quot;what&amp;quot; as AnyObject)
doThis(&amp;quot;what&amp;quot; as AnyObject)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;So that makes sense.&lt;/p&gt;
&lt;p&gt;&lt;a name=&quot;converting-again&quot;&gt; &lt;/a&gt;&lt;/p&gt;
&lt;h2&gt;Converting Again&lt;/h2&gt;
&lt;p&gt;Now you realize that your massive conversion needs to forward merge more Swift 2 code into the same target. Xcode warns you not to do automatic conversion again, but you do it anyway.&lt;/p&gt;
&lt;p&gt;The two methods now look like this, which makes no sense (the second one has now lost its parameter label):&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;func doThisThing(_ thing: AnyObject) {
    print(&amp;quot;doThisThing \(thing.hash)&amp;quot;)
}

func doThis(_ thing: AnyObject) {
    print(&amp;quot;doThis \(thing.hash)&amp;quot;)
}

// calling code
doThisThing(&amp;quot;what&amp;quot; as AnyObject)
doThis(&amp;quot;what&amp;quot; as AnyObject)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In this simple case the callers get updated, but the Objective-C callers do not:&lt;/p&gt;
&lt;p&gt;&lt;center&gt;&lt;/p&gt;
&lt;p&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/4ae03112-c5fb-46b5-87bf-ad664bf48616/5fa3b76a-f4de-4597-8d00-e729eaaba86a.png&quot; /&gt;&lt;br /&gt;
&lt;/center&gt;&lt;/p&gt;
&lt;p&gt;And in many cases, your calling code will be broken in Swift as well.&lt;/p&gt;
&lt;h2&gt;Calling Objective-C from Swift 2 vs. 3&lt;/h2&gt;
&lt;p&gt;The automatic madness deepens with Swift 3 interop.&lt;/p&gt;
&lt;p&gt;Consider this signature in Objective-C:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;+ (NSObject *)deserializeNewOrExistingObjectFromAPIV1JSON:(NSDictionary *)json
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;In Swift 2 you called it this way:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;ThatObject.deserializeNewOrExistingObjectFromAPIV1JSON(json.dictionaryObject)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;But this changes in Swift 3 to:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;ThatObject.deserializeNewOrExistingObject(fromAPIV1JSON: json.dictionaryObject)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And now the result comes back as a forced optional, whereas in Swift 2 it came back as a non-optional.&lt;/p&gt;
&lt;p&gt;Which may or may not get picked up by the automatic converter. The more complex your compilation target is, the less likely the automatic conversion is to succeed.&lt;/p&gt;
&lt;p&gt;Some capitalization changes as Objective-C gets magically converted:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;- (instancetype)initWithJSON:(NSDictionary *)messageBody
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;// Swift 2
ThatObject(JSON: dict)!

// Swift 3
ThatObject(json: dict)
&lt;/code&gt;&lt;/pre&gt;

&lt;p&gt;And some stuff gets even weirder in Objective-C interop:&lt;/p&gt;
&lt;pre&gt;&lt;code class=&quot;language-objectivec&quot;&gt;+ (id)findForUuid:(NSString *)uuid
&lt;/code&gt;&lt;/pre&gt;

&lt;pre&gt;&lt;code class=&quot;language-swift&quot;&gt;// Swift 2
ThatObject.findForUuid(uuid)

// Swift 3
ThatObject.find(forUuid: tender.uuid)!
&lt;/code&gt;&lt;/pre&gt;</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Code Highlighting in Evernote... Kinda</title>
    <id>https://dr2050.postach.io/post/code-highlighting-in-evernote-kinda</id>
    <updated>2017-09-12T14:02:44.230000Z</updated>
    <published>2017-08-05T15:40:01Z</published>
    <link href="https://dr2050.postach.io/post/code-highlighting-in-evernote-kinda" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;A while back, Evernote for Mac added Code Blocks. &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-weight: bold; color: rgb(252, 42, 51);&quot;&gt;To enable this feature, you cannot use the App Store version of Evernote.&lt;/span&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt; &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;In addition, you have to check Enable Code Block in Preferences&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/e21f2c7e-3ea1-4c3b-b4af-188d94f67d82/3468b93c-f2bd-44e4-ad26-cedd5c6c8ae7.png&quot; /&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Code blocks were okay, allowing you to do nice simple stuff maintaining your plain text formatting like this:&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;    func commonInit() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;        self.backgroundColor = UIColor.black;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;        let imageView = UIImageView(image: UIImage(named: &quot;splash.png&quot;)!)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;        imageView.contentMode = .scaleAspectFit&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;        self.addSubview(imageView)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;        constrain(self, imageView) { me, imageView  in&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;            imageView.size == me.size&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;            imageView.center == me.center&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;But there was no way to keep your colored syntax formatting (from Xcode, App Code and others) until Evernote 6.11 for Mac (or sometime like that). &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Here's how to do it:&lt;/span&gt;&lt;/div&gt;&lt;ol&gt;&lt;li&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Type one line of text&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Turn that into a code block&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Replace the contents of that code block with code you paste from Xcode&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;That's it! &lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold; font-size: 14px;&quot;&gt;Stubbed Code Block&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;Stub a code block&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold; font-size: 14px;&quot;&gt;Stubbed Code Block, Content Replaced&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-size: 14px; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; commonInit() {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;backgroundColor&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(97, 34, 174);&quot;&gt;UIColor&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;black&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; imageView = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(97, 34, 174);&quot;&gt;UIImageView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(image: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(97, 34, 174);&quot;&gt;UIImage&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(named: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(200, 27, 19);&quot;&gt;&quot;splash.png&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;)!)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    imageView.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;contentMode&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; = .&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;scaleAspectFit&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(62, 30, 129);&quot;&gt;addSubview&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(imageView)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(41, 76, 80);&quot;&gt;constrain&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;, imageView) { me, imageView  &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(196, 34, 117);&quot;&gt;in&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        imageView.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;size&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(41, 76, 80);&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; me.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;size&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt;        imageView.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;center&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(41, 76, 80);&quot;&gt;==&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0);&quot;&gt; me.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(83, 154, 164);&quot;&gt;center&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0); font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(0, 0, 0); font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;In Atom: Use Copy as RTF&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;The &lt;a href=&quot;https://atom.io/packages/copy-as-rtf&quot;&gt;Copy as RTF package&lt;/a&gt; in Atom will make this work there too. Fun!&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Associated Object Support for Swift 2.3</title>
    <id>https://dr2050.postach.io/post/associated-object-support-for-swift-2-3</id>
    <updated>2017-08-19T14:04:35.079000Z</updated>
    <published>2016-12-06T19:15:14Z</published>
    <link href="https://dr2050.postach.io/post/associated-object-support-for-swift-2-3" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;This is your &lt;font face=&quot;Andale Mono&quot;&gt;AssociatedObjectSupport.swift&lt;/font&gt;. It's for Swift 2.3 and it's &lt;a href=&quot;http://stackoverflow.com/a/29662565/8047&quot;&gt;based on this&lt;/a&gt;. It can handles nulls, and non-objects, too (by wrapping them in Lifted).&lt;/div&gt;&lt;div&gt;&lt;pre style=&quot;color: rgb(0, 0, 0); font-family: Menlo; font-size: 9pt;&quot;&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;import&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; UIKit&lt;br/&gt;&lt;br/&gt;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;final&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;class&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; Lifted {&lt;br/&gt;    &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; value: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;Any&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;br/&gt;    &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;init&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;_&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; x: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;Any&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;) {&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; = x&lt;br/&gt;    }
}&lt;br/&gt;
&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;extension&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;NSObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;    &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; setAssociatedObject&lt;T&gt;(value: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;, associativeKey: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;UnsafePointer&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;Void&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&gt;, policy: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;objc_AssociationPolicy&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; = .&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #3d1d81&quot;&gt;OBJC_ASSOCIATION_RETAIN_NONATOMIC&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;) {&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; v: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;AnyObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; = value &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;? &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;AnyObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #3d1d81&quot;&gt;objc_setAssociatedObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;, associativeKey, v,  policy)&lt;br/&gt;        }&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;else&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; liftedObject = &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;Lifted&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(value)&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #3d1d81&quot;&gt;objc_setAssociatedObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;, associativeKey, liftedObject,  policy)&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;    &lt;br/&gt;    &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; getAssociatedObject&lt;T&gt;(associativeKey: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;UnsafePointer&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;Void&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&gt;) -&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;? {&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; value = &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #3d1d81&quot;&gt;objc_getAssociatedObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;, associativeKey)&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;if&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; value = value &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;? &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;Lifted&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; value.&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;value&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;? &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;br/&gt;        }&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; value &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;? &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;br/&gt;    }
}&lt;br/&gt;
&lt;/span&gt; &lt;/pre&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;b&gt;Example UIView Extension&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;And here's an example extension to UIView that uses it. Note the clever use of a private struct to get static variables on the Extension nicely.&lt;/div&gt;&lt;div&gt;&lt;pre&gt;&lt;font face=&quot;Menlo&quot; size=&quot;2&quot;&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;extension&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {    &lt;br/&gt;    &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;struct&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; AssociatedKeys {&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; viewExtension = &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #d12f1b&quot;&gt;&quot;viewExtension&quot;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; anotherView = &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #d12f1b&quot;&gt;&quot;someOtherView&quot;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; someFloat = &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #d12f1b&quot;&gt;&quot;someFloat&quot;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;br/&gt;    }&lt;br/&gt;        &lt;br/&gt;    &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; someFloat: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;Float&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #31595d&quot;&gt;getAssociatedObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(&amp;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;.someFloat) ?? &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #272ad8&quot;&gt;0.0&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;&lt;br/&gt;        }&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #31595d&quot;&gt;setAssociatedObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(newValue, associativeKey: &amp;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;.someFloat)&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;    &lt;br/&gt;    &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; baseTransform: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;CGAffineTransform&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;? {&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #31595d&quot;&gt;getAssociatedObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(&amp;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;.viewExtension)&lt;br/&gt;        }&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #31595d&quot;&gt;setAssociatedObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(newValue, associativeKey: &amp;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;.viewExtension)&lt;br/&gt;        }&lt;br/&gt;    }&lt;br/&gt;    &lt;br/&gt;    &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; anotherView: &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #703daa&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;? {&lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #31595d&quot;&gt;getAssociatedObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(&amp;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;.anotherView)&lt;br/&gt;        }&lt;br/&gt;        &lt;br/&gt;        &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #bb2ca2&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt; {&lt;br/&gt;            &lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #31595d&quot;&gt;setAssociatedObject&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;(newValue, associativeKey: &amp;&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures; color: #4f8187&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font: 11.0px Menlo; font-variant-ligatures: no-common-ligatures&quot;&gt;.anotherView)&lt;br/&gt;        }&lt;br/&gt;    }
}&lt;br/&gt;&lt;/span&gt;
&lt;/span&gt;&lt;br/&gt;&lt;/font&gt;&lt;hr/&gt;&lt;b&gt;&lt;font face=&quot;Helvetica Neue&quot;&gt;Using the Example&lt;/font&gt;&lt;font face=&quot;Menlo&quot; size=&quot;2&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre&gt;&lt;font face=&quot;Menlo&quot; size=&quot;2&quot;&gt;&lt;pre style=&quot;color: rgb(0, 0, 0); font-family: Menlo; font-size: 9pt;&quot;&gt;&lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;var &lt;/span&gt;view = UIView()&lt;br/&gt;view.baseTransform = CGAffineTransformIdentity&lt;br/&gt;&lt;span style=&quot;color:#291857;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;what's up &lt;/span&gt;\(view.baseTransform)&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;&lt;/span&gt;)&lt;br/&gt;view.baseTransform = &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;nil&lt;br/&gt;&lt;/span&gt;&lt;span style=&quot;color:#291857;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;what's up &lt;/span&gt;\(view.baseTransform == &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;nil&lt;/span&gt;)&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;&lt;/span&gt;)&lt;br/&gt;view.anotherView = UIView()&lt;br/&gt;&lt;span style=&quot;color:#291857;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;you got another view? &lt;/span&gt;\(view.anotherView)   \(view.anotherView?.anotherView)&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;&lt;/span&gt;)&lt;br/&gt;view.anotherView = &lt;span style=&quot;color:#000080;font-weight:bold;&quot;&gt;nil&lt;br/&gt;&lt;/span&gt;view.someFloat = &lt;span style=&quot;color:#0000ff;&quot;&gt;32&lt;/span&gt;.&lt;span style=&quot;color:#0000ff;&quot;&gt;5&lt;br/&gt;&lt;/span&gt;&lt;span style=&quot;color:#291857;&quot;&gt;print&lt;/span&gt;(&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;what's it? &lt;/span&gt;\(view.someFloat)&lt;span style=&quot;color:#008000;font-weight:bold;&quot;&gt;&quot;&lt;/span&gt;)&lt;/pre&gt;&lt;/font&gt;&lt;/pre&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Associated Object Support for Swift 3.x</title>
    <id>https://dr2050.postach.io/post/associated-object-support-for-swift-3-x</id>
    <updated>2017-08-25T15:34:19.609000Z</updated>
    <published>2016-11-10T17:44:02Z</published>
    <link href="https://dr2050.postach.io/post/associated-object-support-for-swift-3-x" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-family: Verdana;&quot;&gt;Of course in Swift 3, this is all trivial... but plus, if you're not using &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-family: Verdana;&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-family: Verdana;&quot;&gt;, why bother? (Credit to &lt;/span&gt;&lt;a style=&quot;font-size: 14px; font-family: Verdana;&quot; href=&quot;http://stackoverflow.com/a/29662565/8047&quot;&gt;this Swift 2.x example&lt;/a&gt;&lt;span style=&quot;font-size: 14px; font-family: Verdana;&quot;&gt;)  &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902); background-position: initial initial; background-repeat: initial initial;-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;extension&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;NSObject&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; setAssociated&lt;T&gt;(value: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;, associativeKey: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;UnsafeRawPointer&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;, policy: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;objc_AssociationPolicy&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; = .&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);&quot;&gt;OBJC_ASSOCIATION_RETAIN_NONATOMIC&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;) {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);&quot;&gt;objc_setAssociatedObject&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;, associativeKey, value,  policy)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;func&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; getAssociated&lt;T&gt;(associativeKey: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;UnsafeRawPointer&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;) -&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;T&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;? {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;let&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; value = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);&quot;&gt;objc_getAssociatedObject&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;self&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;, associativeKey)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; value &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;as&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;? &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;T&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;extension&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;private&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;struct&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; AssociatedKeys {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; viewExtension = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;&quot;viewExtension&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; anotherView = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;&quot;someOtherView&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;static&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; someFloat = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;&quot;someFloat&quot;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; someFloat: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;Float&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);&quot;&gt;getAssociated&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(associativeKey: &amp;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;someFloat&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;) ?? &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(39, 42, 216);&quot;&gt;0.0&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);&quot;&gt;setAssociated&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(value: newValue, associativeKey: &amp;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;someFloat&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; baseTransform: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;CGAffineTransform&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;? {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);&quot;&gt;getAssociated&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(associativeKey: &amp;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;viewExtension&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);&quot;&gt;setAssociated&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(value: newValue, associativeKey: &amp;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;viewExtension&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;    &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; anotherView: &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;? {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;get&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;return&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);&quot;&gt;getAssociated&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(associativeKey: &amp;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;anotherView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;        &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;        &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;set&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; {&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;            &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(49, 89, 93);&quot;&gt;setAssociated&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(value: newValue, associativeKey: &amp;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;AssociatedKeys&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;anotherView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;        }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;    }&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; font-size: 14px;&quot;&gt;}&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;var&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; view = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;baseTransform&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;CGAffineTransform&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;identity&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;&quot;what's up &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;baseTransform&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;baseTransform&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;nil&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;&quot;what's up &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;baseTransform&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; == &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;nil&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;anotherView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(112, 61, 170);&quot;&gt;UIView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;()&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;&quot;you got another view? &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;anotherView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;)   &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;anotherView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;?.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;anotherView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;anotherView&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(187, 44, 162);&quot;&gt;nil&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;someFloat&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt; = &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(39, 42, 216);&quot;&gt;32.5&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(61, 29, 129);&quot;&gt;print&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;&quot;what's it? &lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;\&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;(&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;view&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;.&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(79, 129, 135);&quot;&gt;someFloat&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures; color: rgb(209, 47, 27);&quot;&gt;)&quot;&lt;/span&gt;&lt;span style=&quot;font-size: 14px; font-variant-caps: normal; line-height: normal; font-family: Menlo; font-variant-ligatures: no-common-ligatures;&quot;&gt;)&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 14px;&quot;&gt;My own notes: you cannot get proper weak object support with Associated Objects, so only use them if you do not extend the actual class yourself. &lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-family: Verdana; font-size: 14px;&quot;&gt;&lt;br/&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Verdana&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;&lt;b&gt;Later Note&lt;/b&gt;&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Verdana&quot;&gt;&lt;span style=&quot;font-size: 14px;&quot;&gt;That's really not true: by wrapping your object in a Weak wrapping object, you can always get weak object support. So that's quite cool.&lt;/span&gt;&lt;/font&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Subprojects in Xcode with Static Libs</title>
    <id>https://dr2050.postach.io/post/subprojects-in-xcode-with-static-libs</id>
    <updated>2017-08-17T18:17:11.894000Z</updated>
    <published>2016-01-30T02:50:06Z</published>
    <link href="https://dr2050.postach.io/post/subprojects-in-xcode-with-static-libs" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;Static libraries produce .a files. The catch is: static libraries cannot contain Swift files. But anyway...&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;
&lt;hr/&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;Workspaces and Projects&lt;/b&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;You can add projects to projects (subprojects) or to workspaces&lt;/li&gt;
&lt;li&gt;Projects can be saved as workspaces&lt;/li&gt;
&lt;li&gt;Add a project to another project -- or a workspaces -- by adding the &lt;i&gt;.xcodeproj&lt;/i&gt; file.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;br/&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;hr/&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;Early Setup&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;Add GBDevice as a submodule&lt;/div&gt;
&lt;div style=&quot;margin-left:40px;&quot;&gt;git submodule add https://github.com/lmirosevic/GBDeviceInfo.git GBDeviceInfo &lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;
&lt;hr/&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;Set It Up&lt;/b&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;Create a new, Single View Application for iOS&lt;/li&gt;
&lt;li&gt;Add the &lt;i&gt;.xcodeproj&lt;/i&gt; for an Xcode project that produces a &lt;i&gt;.a&lt;/i&gt; file&lt;br/&gt;
&lt;br/&gt;
In this example we're using &lt;a href=&quot;https://github.com/lmirosevic/GBDeviceInfo&quot;&gt;GBDevice&lt;/a&gt;. &lt;br/&gt;
&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;Set up the primary project like this&lt;br/&gt;
&lt;br/&gt;
&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/c7cb95a8-97d2-400b-8285-8162e75db653/97df7723-b870-444f-85a9-8550ef108917.png&quot;  style=&quot;width: 900px; height: auto;&quot;/&gt;&lt;br/&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;
&lt;hr/&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;Import Objective-C to Swift&lt;/b&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Create a new header file called BridgingHeader.h&lt;/li&gt;
&lt;li&gt;Add it to the Build Settings for the Single Window App&lt;br/&gt;
&lt;br/&gt;
&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/c7cb95a8-97d2-400b-8285-8162e75db653/90195a12-de11-4590-bf40-9a39e9af8793.png&quot;  style=&quot;width: 810px; height: auto;&quot;/&gt;&lt;br/&gt;
&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;Utilize it in a Swift file&lt;br/&gt;
&lt;br/&gt;
&lt;span style=&quot;font-family: 'Courier New';&quot;&gt;       let version = GBDeviceInfo.init().modelString&lt;br/&gt;
       print(version)&lt;br/&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;That's it.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;The kicker is: you cannot use Swift in a static library, so there's that. Hence this &lt;a href=&quot;https://workflowy.com/s/ADHHpFWiPJ&quot;&gt;other article I wrote (longer, and uses Cocoapods)&lt;/a&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Hangouts, Spaces on OSX</title>
    <id>https://dr2050.postach.io/post/hangouts-spaces-on-osx</id>
    <updated>2017-08-17T18:17:10.413000Z</updated>
    <published>2015-11-01T00:35:03Z</published>
    <link href="https://dr2050.postach.io/post/hangouts-spaces-on-osx" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;So this frustration has existed since Mavericks:&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;a href=&quot;https://productforums.google.com/forum/#!topic/hangouts/FvPfMSwcTNY&quot;&gt;Chrome apps (incl. Hangouts) don't play well with OSX Spaces&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;The answer is in the Hangouts App itself... shut this option off. &lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/0f6d4f85-5cc2-40eb-ab26-de2251bf49c6/a2e5ae85-ade6-4512-84aa-ff54ca3eadf9.png&quot;  style=&quot;height: auto;&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Focusrite Saffire MixControl for Scarlett 18i8</title>
    <id>https://dr2050.postach.io/post/focusrite-saffire-mixcontrol-for-scarlett-18i8</id>
    <updated>2017-08-17T18:17:11.092000Z</updated>
    <published>2015-10-23T00:12:00Z</published>
    <link href="https://dr2050.postach.io/post/focusrite-saffire-mixcontrol-for-scarlett-18i8" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <category term="music-myrig" />
    <category term="music-hardware" />
    <content type="html">&lt;div&gt;I was baffled trying to figure out the MixControl, but it's actually quite amazing. Using Mixes as an intermediate bus point (is that right?) is awesome.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-size: 24px;&quot;&gt;&lt;b&gt;SOME INSTRUCTIONS&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/bc3d621c-1cea-4959-94c5-75f3929de19d/f803d1c1-6b21-4a3d-a893-7689f47cfbf0.png&quot;  style=&quot;width: 1127px; height: auto;&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;Define Your Mixes&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;You have four mixes that you can use:&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Left: 1, 3, 5 7&lt;/li&gt;
&lt;li&gt;Right ones cannot be configured separately: 2, 4, 6, 8&lt;/li&gt;
&lt;li&gt;You can rename the mix&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;At the top you're configuring which inputs go into the Mix.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Note that the stereo button &quot;aggregates the 2 mono channels together into a single stereo&quot;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Analog Ins
&lt;ul&gt;
&lt;li&gt;from Front Panel: 1 and 2, 3 and 4&lt;/li&gt;
&lt;li&gt;from Back Panel: 5 and 6, 7 and 8&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;li&gt;Daw Inputs: 1 to 7 (L) and 2-8 (R)&lt;br/&gt;
&lt;br/&gt;
These are your DAW output destinations, exactly as labeled.&lt;br/&gt;
&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;SPDIF and ADAT&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;div&gt;&lt;b&gt;Mix Output&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;&lt;br/&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center&quot;&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/bc3d621c-1cea-4959-94c5-75f3929de19d/3ead231d-a655-4f30-94cc-392c9fccc7f7.png&quot;  style=&quot;width: 334px; height: auto;&quot;/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;You can use the Mix Output dropdown to define where the Mix outputs&lt;/li&gt;
&lt;li&gt;Note for Headphone Outputs on Front Panel
&lt;ul&gt;
&lt;li&gt; Line H/P L and R are called &quot;Output 3&quot; and &quot;Output 4&quot; in the Routing Panel&lt;/li&gt;
&lt;li&gt;Anlg Out 5 and 6 are called &quot;Output 5&quot; and &quot;Output 6&quot; in the Routing Panel&lt;/li&gt;
&lt;/ul&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;div&gt;&lt;b&gt;Routing Panel&lt;/b&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;You can use the routing panel to route individual inputs OR mixes to each output.&lt;br/&gt;
&lt;br/&gt;
&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/bc3d621c-1cea-4959-94c5-75f3929de19d/b2b2fb5a-254f-48c5-878b-c40eef27c2bd.png&quot;  style=&quot;width: 744px; height: auto;&quot;/&gt;&lt;br/&gt;
&lt;br/&gt;&lt;/li&gt;
&lt;li&gt;Monitor Outputs 1 and 2 are in back&lt;/li&gt;
&lt;li&gt;The ones that show a little headphone are the front panel headphone mixes: 1-2 and 3-4&lt;/li&gt;
&lt;/ul&gt;
&lt;hr/&gt;
&lt;div&gt;&lt;b&gt;Dan Says&lt;/b&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Name your mixes&lt;/li&gt;
&lt;li&gt;Do &lt;b&gt;not&lt;/b&gt; route inputs to outputs directly: instead, use mixes&lt;/li&gt;
&lt;li&gt;Do not use the Routing Panel: use the checkboxes in the Mix Output to define the routing&lt;/li&gt;
&lt;li&gt;&lt;b&gt;Note&lt;/b&gt;: using the checkboxes in the Mix Output requires setting both L and R channels of the Mix Output, so you have to check all boxes separately.&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;hr/&gt;
&lt;div&gt;Also see the &lt;a href=&quot;http://us.focusrite.com/answerbase/saffire-mixcontrol-tutorial-part-i-creating-mixes&quot;&gt;Manual Online&lt;/a&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Postach.io Embeds</title>
    <id>https://dr2050.postach.io/post/postach-io-embeds</id>
    <updated>2017-08-19T17:00:50.613000Z</updated>
    <published>2015-10-19T16:42:50Z</published>
    <link href="https://dr2050.postach.io/post/postach-io-embeds" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;Postachio can embed most of what I need. All the embed codes &lt;a href=&quot;http://help.postach.io/tag/post-embeds&quot;&gt;are here&lt;/a&gt;, and note you can use &lt;a href=&quot;http://blog.postach.io/post/using-native-embeds-on-postach-io&quot;&gt;an iFrame directly&lt;/a&gt;.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;SOME EXAMPLES&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;Test This:  Workflowy&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;This is a simple iframe, width is 100%, height is 700, frameborder is 0. I'm using http instead of https for the src URL. Still not sure how to escape the HTML so I can show it to you. Using the entities for less than and greater than doesn't work.&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;iframe width=&quot;100%&quot; height=&quot;700&quot; src=&quot;http://workflowy.com/s/K4NPPttrmW&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;Soundcloud&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;div class=&quot;responsive-container&quot;&gt;&lt;iframe width=&quot;100%&quot; height=&quot;450&quot; scrolling=&quot;no&quot; frameborder=&quot;no&quot; src=&quot;https://w.soundcloud.com/player/?visual=true&amp;url=http%3A%2F%2Fapi.soundcloud.com%2Fplaylists%2F211779003&amp;show_artwork=true&quot;&gt;&lt;/iframe&gt;&lt;/div&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;Gist&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;script src=&quot;https://gist.github.com/drosenstark/9548f2dddf0630bd5ee2.js&quot;&gt;&lt;/script&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;YouTube&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;iframe width=&quot;750&quot; height=&quot;422&quot; src=&quot;https://www.youtube.com/embed/ksYFTGjLlC4?feature=oembed&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;Test This&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;iframe width=&quot;640&quot; height=&quot;360&quot; src=&quot;//www.youtube.com/embed/xCthUlkc7V8?rel=0&quot; frameborder=&quot;0&quot; allowfullscreen&gt;&lt;/iframe&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;Test This: Hiding&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;Using simple HTML comments to hide stuff works well!&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;!--&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;is this hidden?&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;    class func drawHollowCircle(circleColor: UIColor, rect: CGRect, startAngle: CGFloat = 1, endAngle: CGFloat = 360, outerRingProportion: CGFloat = 1, innerRingProportion: CGFloat = 0.5, drawShadow : Bool) {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        //// Variable Declarations&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let startAngleCalced: CGFloat = -startAngle + 270&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let endAngleCalced: CGFloat = -endAngle + 270&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let innerRingDiameter: CGFloat = rect.size.width * innerRingProportion&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let innerRingOffset: CGFloat = 0.5 * (rect.size.width - innerRingDiameter)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let innerRingRect = CGRectMake(innerRingOffset, innerRingOffset, innerRingDiameter, innerRingDiameter)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let outerRingDiameter: CGFloat = rect.size.width * outerRingProportion&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let outerRingOffset: CGFloat = 0.5 * (rect.size.width - outerRingDiameter)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let outerRingRect = CGRectMake(outerRingOffset, outerRingOffset, outerRingDiameter, outerRingDiameter)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        //// Outer Circle Drawing&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let outerCircleRect = outerRingRect&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let outerCirclePath = UIBezierPath()&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        outerCirclePath.addArcWithCenter(CGPointMake(outerCircleRect.midX, outerCircleRect.midY), radius: outerCircleRect.width / 2, startAngle: -startAngleCalced * CGFloat(M_PI)/180, endAngle: -endAngleCalced * CGFloat(M_PI)/180, clockwise: true)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        outerCirclePath.addLineToPoint(CGPointMake(outerCircleRect.midX, outerCircleRect.midY))&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        outerCirclePath.closePath()&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        //// InnerCircle Drawing&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let innerCircleRect = innerRingRect&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        let innerCirclePath = UIBezierPath()&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        innerCirclePath.addArcWithCenter(CGPointMake(innerCircleRect.midX, innerCircleRect.midY), radius: innerCircleRect.width / 2, startAngle: -startAngleCalced * CGFloat(M_PI)/180, endAngle: -endAngleCalced * CGFloat(M_PI)/180, clockwise: true)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        innerCirclePath.addLineToPoint(CGPointMake(innerCircleRect.midX, innerCircleRect.midY))&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        innerCirclePath.closePath()&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        &lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        // Clip out the innerCirclePath&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        outerCirclePath.appendPath(innerCirclePath)&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        outerCirclePath.addClip()&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        outerCirclePath.usesEvenOddFillRule = true;&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        if (drawShadow) {&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;            CGContextSetShadowWithColor(UIGraphicsGetCurrentContext(), CGSizeZero, 0.25 * innerRingDiameter, circleColor.CGColor);&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        circleColor.setFill()&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-align: start; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;        outerCirclePath.fill()&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;span style=&quot;color: rgb(0, 0, 0); font-variant-ligatures: normal; font-variant-caps: normal; letter-spacing: normal; orphans: 2; text-indent: 0px; text-transform: none; widows: 2; word-spacing: 0px; -webkit-text-stroke-width: 0px; text-decoration-style: initial; text-decoration-color: initial; word-wrap: break-word; white-space: pre-wrap;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;    }&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;--&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot; face=&quot;Verdana&quot;&gt;&lt;br/&gt;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Hollow Circle with CoreDrawing and Swift</title>
    <id>https://dr2050.postach.io/post/hollow-circle-with-coredrawing-and-swift</id>
    <updated>2017-08-17T18:17:11.367000Z</updated>
    <published>2015-10-18T15:46:41Z</published>
    <link href="https://dr2050.postach.io/post/hollow-circle-with-coredrawing-and-swift" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;Thanks to &lt;a href=&quot;http://www.paintcodeapp.com/&quot;&gt;Paintcode&lt;/a&gt; and a bit of thinking on my part, I was able to put my one-method-to-rule-them-all together. It draws a variable-size donut with a variable angle. The &lt;span style=&quot;font-family: 'Courier New';&quot;&gt;drawShadow&lt;/span&gt; bit is still in progress.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;script src=&quot;https://gist.github.com/drosenstark/9548f2dddf0630bd5ee2.js&quot;&gt;&lt;/script&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Importing Swift to Objective-C, Multiple Modules</title>
    <id>https://dr2050.postach.io/post/importing-swift-to-objective-c-multiple-modules</id>
    <updated>2017-08-17T18:17:11.927000Z</updated>
    <published>2015-10-16T19:48:00Z</published>
    <link href="https://dr2050.postach.io/post/importing-swift-to-objective-c-multiple-modules" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;This goes by Module (i.e., target), not by project (ignore the &lt;a href=&quot;http://www.captechconsulting.com/blogs/ios-8-tutorial-series-interoperating-between-swift-and-an-existing-objective-c-code-base&quot;&gt;confusion on the Internet&lt;/a&gt;).&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;So in my MIDI Designer project, which includes several targets, we change the generated name for all the modules, stored in the Objective-C Generated Interface Header Name property, from&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Andale Mono&quot;&gt;$(SWIFT_MODULE_NAME)-Swift.h&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;to&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Andale Mono&quot;&gt;MidiDesignerAllTargets-Swift.h&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/6e114e28-66f4-4aa1-b1ea-63da0c20da95/e12458cb-b58a-4c0e-9504-bcd8fa6896f5.png&quot; /&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Then in each Objective-C class, you can import directly in the .m like this:&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Andale Mono&quot;&gt;#import &quot;MidiDesignerAllTargets-Swift.h&quot;&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Make sure to keep the name of your global import handy!&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;b&gt;Dynamic Instantiation of Swift Classes and Interface Builder&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;Most of the time, it's enough for a Swift class to inherit NSObject to be able to be used from Objective-C.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;For dynamic instantiation and, more importantly, use in Interface Builder, you need to specify the class' name explicitly using @objc. For example:&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Andale Mono&quot;&gt;      @objc(SliderV2)&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;font face=&quot;Andale Mono&quot;&gt;      class SliderV2: Slider {&lt;/font&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;&lt;hr/&gt;&lt;div&gt;&lt;b&gt;Additional Notes&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;You can't see the header at all? It's not being generated? &lt;a href=&quot;http://stackoverflow.com/a/24064015/8047&quot;&gt;This answer&lt;/a&gt; has your back. Basically you need to:&lt;/div&gt;
&lt;div&gt;&lt;ul&gt;&lt;li&gt;Define a &lt;b&gt;Product Module Name&lt;/b&gt; (no spaces) for the Project&lt;/li&gt;&lt;li&gt;Set &lt;b&gt;Defines Module&lt;/b&gt; must be set to Yes in Build Settings, under Packaging&lt;br/&gt;&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;In Xcode 8, the Objective-C Generated Interface Header Name will be under Swift Compiler, General. Same same.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Password Assistant on OSX</title>
    <id>https://dr2050.postach.io/post/password-assistant-on-osx</id>
    <updated>2017-08-17T18:17:10.762000Z</updated>
    <published>2015-09-15T20:52:00Z</published>
    <link href="https://dr2050.postach.io/post/password-assistant-on-osx" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;Well, this is one terrible way to import from Blogger to Postach.io... definitely not ideal.&lt;/div&gt;
&lt;div&gt;&lt;br/&gt;&lt;/div&gt;
&lt;div&gt;&lt;img src=&quot;https://cdn-images.postach.io/f6313c91-45c5-4da0-8e6c-3f69ae1c5209/3f6add14-0c36-43b2-addc-706dbb3e7f9f/183beacf-a1a7-44a2-a1ec-db21c962a144.png&quot;  style=&quot;height: auto;&quot;/&gt;&lt;/div&gt;
</content>
  </entry>
  <entry xml:base="http://dr2050.postach.io/feed.xml">
    <title type="text">Scheme for Pragma Mark Organization in Objective-C</title>
    <id>https://dr2050.postach.io/post/scheme-for-pragma-mark-organization-in-objective-c</id>
    <updated>2018-05-28T14:53:41.599000Z</updated>
    <published>2012-09-14T15:28:39Z</published>
    <link href="https://dr2050.postach.io/post/scheme-for-pragma-mark-organization-in-objective-c" />
    <author>
      <name>Dan Rosenstark</name>
    </author>
    <content type="html">&lt;div&gt;&lt;span style=&quot;font-style: italic; font-weight: normal;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;Here's an article that I wrote in 2012 for myself...&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: normal; font-weight: normal;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;If you want to be like all the smart people you read about on the Internet, you'll keep your files really well-organized. If you have such long files that you need to use pragma marks (which some people, including Jeff Atwood, I recall, think means that your files are too long) you have a basic organizational problem. Now the solution to this is, of course, &quot;bust the file up into sections and stick to those.&quot; But what would those sections be? So I'm usually going by functionality, but then I inevitably lose it and end up with no organization at all, or (worse) using it in half the file.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: normal; font-weight: normal;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;The reason that I failed is that I cannot use a scheme that requires you to know what each method does. That's very time-consuming and, in a sense, redundant with the messages you see passed in the code.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: normal; font-weight: normal;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;So here's my new scheme, which is very easy to use because it doesn't require you to think. I've been trying this for a while and it's great.&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;br /&gt;&lt;/font&gt;&lt;/div&gt;&lt;div style=&quot;box-sizing: border-box; padding: 8px; font-family: Monaco, Menlo, Consolas, &quot;Courier New&quot;, monospace; font-size: 12px; color: rgb(51, 51, 51); border-top-left-radius: 4px; border-top-right-radius: 4px; border-bottom-right-radius: 4px; border-bottom-left-radius: 4px; background-color: rgb(251, 250, 248); border: 1px solid rgba(0, 0, 0, 0.14902);-en-codeblock:true;&quot;&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-family: Monaco; color: rgb(51, 51, 51);&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- class methods &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- initializers, dealloc, and lifecycle methods &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(176, 177, 182); font-style: italic; font-family: Monaco;&quot;&gt;   // like didMoveToSuperview&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(176, 177, 182); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(176, 177, 182); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- property accessors &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- public overrides &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- public property accessor overrides &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- public methods &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- protocol A methods &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- protocol B methods &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- dependent-object lifecycle &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(176, 177, 182); font-style: italic; font-family: Monaco;&quot;&gt;   // like viewDidLoad, viewDidAppear, etc., NOT like hideView&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(176, 177, 182); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(176, 177, 182); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- Methods not in public interface &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;
&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(183, 66, 179); font-family: Monaco;&quot;&gt;#pragma mark&lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt; &lt;/span&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(235, 109, 91); font-family: Monaco;&quot;&gt;- Not Implemented &lt;/span&gt;&lt;/font&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-style: normal; font-variant-caps: normal; font-weight: normal; font-stretch: normal; line-height: normal; color: rgb(72, 75, 84); font-family: Monaco;&quot;&gt;&lt;font style=&quot;font-size: 14px;&quot;&gt;
&lt;/font&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;
</content>
  </entry>
</feed>
