.color-scheme-toggle[data-v-12216a5a]{--toggle-color-fill:var(--color-button-background);--toggle-color-text:var(--color-fill-blue);font-size:.70588rem;line-height:1.33337;font-weight:400;letter-spacing:-.01em;font-family:SF Pro Text,system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Arial,sans-serif;border:1px solid var(--toggle-color-fill);border-radius:var(--toggle-border-radius-outer,15px);display:inline-flex;padding:1px}@media screen{[data-color-scheme=dark] .color-scheme-toggle[data-v-12216a5a]{--toggle-color-text:var(--color-figure-blue)}}@media screen and (prefers-color-scheme:dark){[data-color-scheme=auto] .color-scheme-toggle[data-v-12216a5a]{--toggle-color-text:var(--color-figure-blue)}}input[data-v-12216a5a]{position:absolute;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(0 0 99.9% 99.9%);clip-path:inset(0 0 99.9% 99.9%);overflow:hidden;height:1px;width:1px;padding:0;border:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.text[data-v-12216a5a]{border:1px solid transparent;border-radius:var(--toggle-border-radius-inner,2px);color:var(--toggle-color-text);display:inline-block;text-align:center;padding:1px 6px;min-width:42px;box-sizing:border-box}.text[data-v-12216a5a]:hover{cursor:pointer}input:checked+.text[data-v-12216a5a]{--toggle-color-text:var(--color-button-text);background:var(--toggle-color-fill);border-color:var(--toggle-color-fill)}.footer[data-v-3cade590]{border-top:1px solid var(--color-grid)}.row[data-v-3cade590]{margin-left:auto;margin-right:auto;width:980px;display:flex;flex-direction:row-reverse;padding:20px 0}@media only screen and (max-width:1068px){.row[data-v-3cade590]{width:692px}}@media only screen and (max-width:735px){.row[data-v-3cade590]{width:87.5%}}.InitialLoadingPlaceholder[data-v-853ec1a8]{background:var(--colors-loading-placeholder-background,var(--color-loading-placeholder-background));height:100vh;width:100%}html{-ms-text-size-adjust:100%;-webkit-text-size-adjust:100%;background-color:var(--colors-text-background,var(--color-text-background));height:100%}abbr,blockquote,body,button,dd,dl,dt,fieldset,figure,form,h1,h2,h3,h4,h5,h6,hgroup,input,legend,li,ol,p,pre,ul{margin:0;padding:0}address,caption,code,figcaption,pre,th{font-size:1em;font-weight:400;font-style:normal}fieldset,iframe,img{border:0}caption,th{text-align:left}table{border-collapse:collapse;border-spacing:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}button{background:none;border:0;box-sizing:content-box;color:inherit;cursor:pointer;font:inherit;line-height:inherit;overflow:visible;vertical-align:inherit}button:disabled{cursor:default}:focus{outline:4px solid var(--color-focus-color);outline-offset:1px}::-moz-focus-inner{border:0;padding:0}@media print{#content,#main,body{color:#000}a,a:link,a:visited{color:#000;text-decoration:none}.hide,.noprint{display:none}}body{height:100%;min-width:320px}html{font:var(--typography-html-font,17px "SF Pro Text",system-ui,-apple-system,BlinkMacSystemFont,"Helvetica Neue","Helvetica","Arial",sans-serif);quotes:"“" "”"}body{font-size:1rem;line-height:1.47059;font-weight:400;letter-spacing:-.022em;font-family:SF Pro Text,system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Arial,sans-serif;background-color:var(--color-fill);color:var(--colors-text,var(--color-text));font-style:normal;word-wrap:break-word}body,button,input,select,textarea{font-synthesis:none;-moz-font-feature-settings:"kern";-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;direction:ltr;text-align:left}h1,h2,h3,h4,h5,h6{color:var(--colors-header-text,var(--color-header-text))}h1+*,h2+*,h3+*,h4+*,h5+*,h6+*{margin-top:.8em}h1+h1,h1+h2,h1+h3,h1+h4,h1+h5,h1+h6,h2+h1,h2+h2,h2+h3,h2+h4,h2+h5,h2+h6,h3+h1,h3+h2,h3+h3,h3+h4,h3+h5,h3+h6,h4+h1,h4+h2,h4+h3,h4+h4,h4+h5,h4+h6,h5+h1,h5+h2,h5+h3,h5+h4,h5+h5,h5+h6,h6+h1,h6+h2,h6+h3,h6+h4,h6+h5,h6+h6{margin-top:.4em}ol+h1,ol+h2,ol+h3,ol+h4,ol+h5,ol+h6,p+h1,p+h2,p+h3,p+h4,p+h5,p+h6,ul+h1,ul+h2,ul+h3,ul+h4,ul+h5,ul+h6{margin-top:1.6em}ol+*,p+*,ul+*{margin-top:.8em}ol,ul{margin-left:1.17647em}ol ol,ol ul,ul ol,ul ul{margin-top:0;margin-bottom:0}nav ol,nav ul{margin:0;list-style:none}li li{font-size:1em}a{color:var(--colors-link,var(--color-link))}a:link,a:visited{text-decoration:none}a:hover{text-decoration:underline}a:active{text-decoration:none}p+a{display:inline-block}b,strong{font-weight:600}cite,dfn,em,i{font-style:italic}sup{font-size:.6em;vertical-align:top;position:relative;bottom:-.2em}h1 sup,h2 sup,h3 sup{font-size:.4em}sup a{vertical-align:inherit;color:inherit}sup a:hover{color:var(--figure-blue);text-decoration:none}sub{line-height:1}abbr{border:0}pre{overflow:auto;-webkit-overflow-scrolling:auto;white-space:pre;word-wrap:normal}code{font-family:SF Mono,SFMono-Regular,ui-monospace,Menlo,monospace;font-weight:inherit;letter-spacing:0}.syntax-comment{color:var(--syntax-comment,var(--color-syntax-comments))}.syntax-quote{color:var(--syntax-quote,var(--color-syntax-comments))}.syntax-keyword{color:var(--syntax-keyword,var(--color-syntax-keywords))}.syntax-literal{color:var(--syntax-literal,var(--color-syntax-keywords))}.syntax-selector-tag{color:var(--syntax-selector-tag,var(--color-syntax-keywords))}.syntax-string{color:var(--syntax-string,var(--color-syntax-strings))}.syntax-bullet{color:var(--syntax-bullet,var(--color-syntax-characters))}.syntax-meta{color:var(--syntax-meta,var(--color-syntax-characters))}.syntax-number{color:var(--syntax-number,var(--color-syntax-characters))}.syntax-symbol{color:var(--syntax-symbol,var(--color-syntax-characters))}.syntax-tag{color:var(--syntax-tag,var(--color-syntax-characters))}.syntax-attr{color:var(--syntax-attr,var(--color-syntax-other-type-names))}.syntax-built_in{color:var(--syntax-built_in,var(--color-syntax-other-type-names))}.syntax-builtin-name{color:var(--syntax-builtin-name,var(--color-syntax-other-type-names))}.syntax-class{color:var(--syntax-class,var(--color-syntax-other-type-names))}.syntax-params{color:var(--syntax-params,var(--color-syntax-other-type-names))}.syntax-section{color:var(--syntax-section,var(--color-syntax-other-type-names))}.syntax-title{color:var(--syntax-title,var(--color-syntax-other-type-names))}.syntax-type{color:var(--syntax-type,var(--color-syntax-other-type-names))}.syntax-attribute{color:var(--syntax-attribute,var(--color-syntax-plain-text))}.syntax-identifier{color:var(--syntax-identifier,var(--color-syntax-plain-text))}.syntax-subst{color:var(--syntax-subst,var(--color-syntax-plain-text))}.syntax-doctag,.syntax-strong{font-weight:700}.syntax-emphasis,.syntax-link{font-style:italic}[data-syntax=swift] .syntax-meta{color:var(--syntax-meta,var(--color-syntax-keywords))}[data-syntax=swift] .syntax-class,[data-syntax=swift] .syntax-keyword+.syntax-params,[data-syntax=swift] .syntax-params+.syntax-params{color:unset}[data-syntax=json] .syntax-attr{color:var(--syntax-attr,var(--color-syntax-strings))}#skip-nav{position:absolute;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(0 0 99.9% 99.9%);clip-path:inset(0 0 99.9% 99.9%);overflow:hidden;height:1px;width:1px;padding:0;border:0}#skip-nav:active,#skip-nav:focus{position:relative;float:left;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content;color:var(--color-figure-blue);font-size:1em;padding:0 10px;z-index:100000;top:0;left:0;height:44px;line-height:44px;-webkit-clip-path:unset;clip-path:unset}.nav--in-breakpoint-range #skip-nav{display:none}.visuallyhidden{position:absolute;clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(0 0 99.9% 99.9%);clip-path:inset(0 0 99.9% 99.9%);overflow:hidden;height:1px;width:1px;padding:0;border:0}.changed{border:1px solid var(--color-changes-modified);border-radius:18px;position:relative}.changed.has-multiple-lines,.has-multiple-lines .changed{border-radius:15px}.changed:after{right:0;background-image:url(/web/20211007150851im_/https://developer.apple.com/tutorials/img/modified-icon.142f439d.svg);background-repeat:no-repeat;bottom:0;content:" ";margin:auto;margin-right:7px;position:absolute;top:0;width:1.17647rem;height:1.17647rem;margin-top:.41176rem;z-index:2}@media screen{[data-color-scheme=dark] .changed:after{background-image:url(/web/20211007150851im_/https://developer.apple.com/tutorials/img/modified-dark-icon.b46ac473.svg)}}@media screen and (prefers-color-scheme:dark){[data-color-scheme=auto] .changed:after{background-image:url(/web/20211007150851im_/https://developer.apple.com/tutorials/img/modified-dark-icon.b46ac473.svg)}}.changed-added{border-color:var(--color-changes-added)}.changed-added:after{background-image:url(/web/20211007150851im_/https://developer.apple.com/tutorials/img/added-icon.21d07d95.svg)}@media screen{[data-color-scheme=dark] .changed-added:after{background-image:url(/web/20211007150851im_/https://developer.apple.com/tutorials/img/added-dark-icon.4566d6c6.svg)}}@media screen and (prefers-color-scheme:dark){[data-color-scheme=auto] .changed-added:after{background-image:url(/web/20211007150851im_/https://developer.apple.com/tutorials/img/added-dark-icon.4566d6c6.svg)}}.changed-deprecated{border-color:var(--color-changes-deprecated)}.changed-deprecated:after{background-image:url(/web/20211007150851im_/https://developer.apple.com/tutorials/img/deprecated-icon.c3a1ec07.svg)}@media screen{[data-color-scheme=dark] .changed-deprecated:after{background-image:url(/web/20211007150851im_/https://developer.apple.com/tutorials/img/deprecated-dark-icon.f4cbba81.svg)}}@media screen and (prefers-color-scheme:dark){[data-color-scheme=auto] .changed-deprecated:after{background-image:url(/web/20211007150851im_/https://developer.apple.com/tutorials/img/deprecated-dark-icon.f4cbba81.svg)}}.changed.link-block:after,.changed.relationships-item:after,.link-block .changed:after{margin-top:7px}.change-added,.change-removed{padding:2px 0}.change-removed{background-color:var(--color-highlight-red)}.change-added{background-color:var(--color-highlight-green)}body{color-scheme:light dark}body[data-color-scheme=light]{color-scheme:light}body[data-color-scheme=dark]{color-scheme:dark}body{--color-article-background:var(--color-fill-tertiary);--color-article-body-background:var(--color-fill);--color-aside-deprecated:var(--color-figure-gray);--color-aside-experiment:var(--color-figure-gray);--color-aside-experiment-background:var(--color-fill-gray-secondary);--color-aside-experiment-border:var(--color-figure-light-gray);--color-aside-important:var(--color-figure-gray);--color-aside-important-background:var(--color-fill-gray-secondary);--color-aside-important-border:var(--color-figure-light-gray);--color-aside-note:var(--color-figure-gray);--color-aside-note-background:var(--color-fill-gray-secondary);--color-aside-tip:var(--color-figure-gray);--color-aside-tip-background:var(--color-fill-gray-secondary);--color-aside-tip-border:var(--color-figure-light-gray);--color-aside-warning:var(--color-figure-gray);--color-badge-default:var(--color-figure-light-gray);--color-badge-beta:var(--color-figure-gray-tertiary);--color-badge-deprecated:var(--color-figure-orange);--color-badge-dark-default:#9a9a9e;--color-badge-dark-beta:#6e6e73;--color-badge-dark-deprecated:#f56300;--color-button-background:var(--color-fill-blue);--color-button-background-active:#06c;--color-button-background-hover:var(--color-figure-blue);--color-button-text:#fff;--color-call-to-action-background:var(--color-fill-secondary);--color-changes-added:var(--color-figure-light-gray);--color-changes-added-hover:var(--color-figure-light-gray);--color-changes-deprecated:var(--color-figure-light-gray);--color-changes-deprecated-hover:var(--color-figure-light-gray);--color-changes-modified:var(--color-figure-light-gray);--color-changes-modified-hover:var(--color-figure-light-gray);--color-changes-modified-previous-background:var(--color-fill-gray-secondary);--color-code-background:var(--color-fill-secondary);--color-code-collapsible-background:var(--color-fill-tertiary);--color-code-collapsible-text:var(--color-figure-gray-secondary-alt);--color-code-line-highlight:rgba(0,102,204,0.08);--color-code-line-highlight-border:var(--color-figure-blue);--color-code-plain:var(--color-figure-gray);--color-content-table-content-color:var(--color-fill-secondary);--color-dropdown-background:hsla(0,0%,100%,0.8);--color-dropdown-border:#1d1d1f;--color-dropdown-option-text:#6e6e73;--color-dropdown-text:#1d1d1f;--color-dropdown-dark-background:hsla(0,0%,100%,0.1);--color-dropdown-dark-border:rgba(210,210,215,0.2);--color-dropdown-dark-option-text:#86868b;--color-dropdown-dark-text:#f5f5f7;--color-eyebrow:var(--color-figure-gray-secondary);--color-focus-border-color:var(--color-fill-blue);--color-focus-color:rgba(0,125,250,0.6);--color-form-error:var(--color-figure-red);--color-form-error-background:var(--color-fill-red-secondary);--color-form-valid:var(--color-figure-green);--color-form-valid-background:var(--color-fill-green-secondary);--color-generic-modal-background:var(--color-fill);--color-grid:var(--color-fill-gray);--color-header-text:var(--color-figure-gray);--color-hero-eyebrow:#86868b;--color-link:var(--color-figure-blue);--color-loading-placeholder-background:var(--color-fill);--color-nav-color:#515154;--color-nav-current-link:rgba(29,29,31,0.6);--color-nav-expanded:#fff;--color-nav-hierarchy-collapse-background:#d2d2d7;--color-nav-hierarchy-collapse-borders:#86868b;--color-nav-hierarchy-item-borders:#86868b;--color-nav-keyline:rgba(29,29,31,0.2);--color-nav-link-color:#1d1d1f;--color-nav-link-color-hover:#06c;--color-nav-outlines:#1d1d1f;--color-nav-rule:rgba(210,210,215,0.5);--color-nav-solid-background:#fff;--color-nav-sticking-expanded-keyline:rgba(29,29,31,0.1);--color-nav-stuck:hsla(0,0%,100%,0.9);--color-nav-uiblur-expanded:hsla(0,0%,100%,0.9);--color-nav-uiblur-stuck:hsla(0,0%,100%,0.7);--color-nav-root-subhead:var(--color-tutorials-teal);--color-nav-dark-border-top-color:hsla(0,0%,100%,0.4);--color-nav-dark-color:#a1a1a6;--color-nav-dark-current-link:rgba(245,245,247,0.6);--color-nav-dark-expanded:#1d1d1f;--color-nav-dark-hierarchy-collapse-background:#424245;--color-nav-dark-hierarchy-collapse-borders:#6e6e73;--color-nav-dark-hierarchy-item-borders:#424245;--color-nav-dark-keyline:rgba(66,66,69,0.95);--color-nav-dark-link-color:#f5f5f7;--color-nav-dark-link-color-hover:#2997ff;--color-nav-dark-outlines:#f5f5f7;--color-nav-dark-rule:#f5f5f7;--color-nav-dark-solid-background:#000;--color-nav-dark-sticking-expanded-keyline:rgba(66,66,69,0.7);--color-nav-dark-stuck:rgba(29,29,31,0.9);--color-nav-dark-uiblur-expanded:rgba(29,29,31,0.9);--color-nav-dark-uiblur-stuck:rgba(29,29,31,0.7);--color-nav-dark-root-subhead:#54c4bc;--color-runtime-preview-background:var(--color-fill-tertiary);--color-runtime-preview-disabled-text:rgba(110,110,115,0.6);--color-runtime-preview-text:var(--color-figure-gray-secondary);--color-secondary-label:var(--color-figure-gray-secondary);--color-step-background:var(--color-fill-secondary);--color-step-caption:var(--color-figure-gray-secondary);--color-step-focused:var(--color-figure-light-gray);--color-step-text:var(--color-figure-gray-secondary);--color-svg-icon:#6e6e73;--color-syntax-attributes:#947100;--color-syntax-characters:#272ad8;--color-syntax-comments:#707f8c;--color-syntax-documentation-markup:#506375;--color-syntax-documentation-markup-keywords:#506375;--color-syntax-heading:#ba2da2;--color-syntax-keywords:#ad3da4;--color-syntax-marks:#000;--color-syntax-numbers:#272ad8;--color-syntax-other-class-names:#703daa;--color-syntax-other-constants:#4b21b0;--color-syntax-other-declarations:#047cb0;--color-syntax-other-function-and-method-names:#4b21b0;--color-syntax-other-instance-variables-and-globals:#703daa;--color-syntax-other-preprocessor-macros:#78492a;--color-syntax-other-type-names:#703daa;--color-syntax-param-internal-name:#404040;--color-syntax-plain-text:#000;--color-syntax-preprocessor-statements:#78492a;--color-syntax-project-class-names:#3e8087;--color-syntax-project-constants:#2d6469;--color-syntax-project-function-and-method-names:#2d6469;--color-syntax-project-instance-variables-and-globals:#3e8087;--color-syntax-project-preprocessor-macros:#78492a;--color-syntax-project-type-names:#3e8087;--color-syntax-strings:#d12f1b;--color-syntax-type-declarations:#03638c;--color-syntax-urls:#1337ff;--color-tabnav-item-border-color:var(--color-fill-gray);--color-text:var(--color-figure-gray);--color-text-background:var(--color-fill);--color-tutorial-assessments-background:var(--color-fill-secondary);--color-tutorial-background:var(--color-fill);--color-tutorial-navbar-dropdown-background:var(--color-fill);--color-tutorial-navbar-dropdown-border:var(--color-fill-gray);--color-tutorial-quiz-border-active:var(--color-figure-blue);--color-tutorials-overview-background:#161617;--color-tutorials-overview-content-alt:#f5f5f7;--color-tutorials-overview-eyebrow:#86868b;--color-tutorials-overview-icon:#9a9a9e;--color-tutorials-overview-link:#2997ff;--color-tutorials-overview-navigation-link:#86868b;--color-tutorials-overview-navigation-link-hover:#f5f5f7;--color-tutorial-hero-text:#f5f5f7;--color-tutorial-hero-background:#000}@media screen{body[data-color-scheme=dark]{--color-fill:#000;--color-fill-secondary:#161617;--color-fill-tertiary:#1d1d1f;--color-fill-blue:#0071e3;--color-fill-gray:#f5f5f7;--color-fill-gray-secondary:#6e6e73;--color-fill-green-secondary:#002b03;--color-fill-orange-secondary:#290d00;--color-fill-red-secondary:#300;--color-figure-blue:#2997ff;--color-figure-gray:#f5f5f7;--color-figure-gray-secondary:#86868b;--color-figure-gray-secondary-alt:#a1a1a6;--color-figure-gray-tertiary:#6e6e73;--color-figure-green:#03a10e;--color-figure-light-gray:#9a9a9e;--color-figure-orange:#f56300;--color-figure-red:#ff3037;--color-tutorials-teal:#54c4bc;--color-article-body-background:#111;--color-button-background-active:#0071e3;--color-code-line-highlight:rgba(41,151,255,0.08);--color-dropdown-background:var(--color-dropdown-dark-background);--color-dropdown-border:var(--color-dropdown-dark-border);--color-dropdown-option-text:var(--color-dropdown-dark-option-text);--color-dropdown-text:var(--color-dropdown-dark-text);--color-nav-color:var(--color-nav-dark-color);--color-nav-current-link:var(--color-nav-dark-current-link);--color-nav-expanded:var(--color-nav-dark-expanded);--color-nav-hierarchy-collapse-background:var(--color-nav-dark-hierarchy-collapse-background);--color-nav-hierarchy-collapse-borders:var(--color-nav-dark-hierarchy-collapse-borders);--color-nav-hierarchy-item-borders:var(--color-nav-dark-hierarchy-item-borders);--color-nav-keyline:var(--color-nav-dark-keyline);--color-nav-link-color:var(--color-nav-dark-link-color);--color-nav-link-color-hover:var(--color-nav-dark-link-color-hover);--color-nav-outlines:var(--color-nav-dark-outlines);--color-nav-rule:var(--color-nav-dark-rule);--color-nav-solid-background:var(--color-nav-dark-solid-background);--color-nav-sticking-expanded-keyline:var(--color-nav-dark-sticking-expanded-keyline);--color-nav-stuck:var(--color-nav-dark-stuck);--color-nav-uiblur-expanded:var(--color-nav-dark-uiblur-expanded);--color-nav-uiblur-stuck:var(--color-nav-dark-uiblur-stuck);--color-runtime-preview-disabled-text:rgba(134,134,139,0.6);--color-syntax-attributes:#cc9768;--color-syntax-characters:#d9c97c;--color-syntax-comments:#7f8c98;--color-syntax-documentation-markup:#7f8c98;--color-syntax-documentation-markup-keywords:#a3b1bf;--color-syntax-keywords:#ff7ab2;--color-syntax-marks:#fff;--color-syntax-numbers:#d9c97c;--color-syntax-other-class-names:#dabaff;--color-syntax-other-constants:#a7ebdd;--color-syntax-other-declarations:#4eb0cc;--color-syntax-other-function-and-method-names:#b281eb;--color-syntax-other-instance-variables-and-globals:#b281eb;--color-syntax-other-preprocessor-macros:#ffa14f;--color-syntax-other-type-names:#dabaff;--color-syntax-param-internal-name:#bfbfbf;--color-syntax-plain-text:#fff;--color-syntax-preprocessor-statements:#ffa14f;--color-syntax-project-class-names:#acf2e4;--color-syntax-project-constants:#78c2b3;--color-syntax-project-function-and-method-names:#78c2b3;--color-syntax-project-instance-variables-and-globals:#78c2b3;--color-syntax-project-preprocessor-macros:#ffa14f;--color-syntax-project-type-names:#acf2e4;--color-syntax-strings:#ff8170;--color-syntax-type-declarations:#6bdfff;--color-syntax-urls:#69f;--color-tutorial-background:var(--color-fill-tertiary)}}@media screen and (prefers-color-scheme:dark){body[data-color-scheme=auto]{--color-fill:#000;--color-fill-secondary:#161617;--color-fill-tertiary:#1d1d1f;--color-fill-blue:#0071e3;--color-fill-gray:#f5f5f7;--color-fill-gray-secondary:#6e6e73;--color-fill-green-secondary:#002b03;--color-fill-orange-secondary:#290d00;--color-fill-red-secondary:#300;--color-figure-blue:#2997ff;--color-figure-gray:#f5f5f7;--color-figure-gray-secondary:#86868b;--color-figure-gray-secondary-alt:#a1a1a6;--color-figure-gray-tertiary:#6e6e73;--color-figure-green:#03a10e;--color-figure-light-gray:#9a9a9e;--color-figure-orange:#f56300;--color-figure-red:#ff3037;--color-tutorials-teal:#54c4bc;--color-article-body-background:#111;--color-button-background-active:#0071e3;--color-code-line-highlight:rgba(41,151,255,0.08);--color-dropdown-background:var(--color-dropdown-dark-background);--color-dropdown-border:var(--color-dropdown-dark-border);--color-dropdown-option-text:var(--color-dropdown-dark-option-text);--color-dropdown-text:var(--color-dropdown-dark-text);--color-nav-color:var(--color-nav-dark-color);--color-nav-current-link:var(--color-nav-dark-current-link);--color-nav-expanded:var(--color-nav-dark-expanded);--color-nav-hierarchy-collapse-background:var(--color-nav-dark-hierarchy-collapse-background);--color-nav-hierarchy-collapse-borders:var(--color-nav-dark-hierarchy-collapse-borders);--color-nav-hierarchy-item-borders:var(--color-nav-dark-hierarchy-item-borders);--color-nav-keyline:var(--color-nav-dark-keyline);--color-nav-link-color:var(--color-nav-dark-link-color);--color-nav-link-color-hover:var(--color-nav-dark-link-color-hover);--color-nav-outlines:var(--color-nav-dark-outlines);--color-nav-rule:var(--color-nav-dark-rule);--color-nav-solid-background:var(--color-nav-dark-solid-background);--color-nav-sticking-expanded-keyline:var(--color-nav-dark-sticking-expanded-keyline);--color-nav-stuck:var(--color-nav-dark-stuck);--color-nav-uiblur-expanded:var(--color-nav-dark-uiblur-expanded);--color-nav-uiblur-stuck:var(--color-nav-dark-uiblur-stuck);--color-runtime-preview-disabled-text:rgba(134,134,139,0.6);--color-syntax-attributes:#cc9768;--color-syntax-characters:#d9c97c;--color-syntax-comments:#7f8c98;--color-syntax-documentation-markup:#7f8c98;--color-syntax-documentation-markup-keywords:#a3b1bf;--color-syntax-keywords:#ff7ab2;--color-syntax-marks:#fff;--color-syntax-numbers:#d9c97c;--color-syntax-other-class-names:#dabaff;--color-syntax-other-constants:#a7ebdd;--color-syntax-other-declarations:#4eb0cc;--color-syntax-other-function-and-method-names:#b281eb;--color-syntax-other-instance-variables-and-globals:#b281eb;--color-syntax-other-preprocessor-macros:#ffa14f;--color-syntax-other-type-names:#dabaff;--color-syntax-param-internal-name:#bfbfbf;--color-syntax-plain-text:#fff;--color-syntax-preprocessor-statements:#ffa14f;--color-syntax-project-class-names:#acf2e4;--color-syntax-project-constants:#78c2b3;--color-syntax-project-function-and-method-names:#78c2b3;--color-syntax-project-instance-variables-and-globals:#78c2b3;--color-syntax-project-preprocessor-macros:#ffa14f;--color-syntax-project-type-names:#acf2e4;--color-syntax-strings:#ff8170;--color-syntax-type-declarations:#6bdfff;--color-syntax-urls:#69f;--color-tutorial-background:var(--color-fill-tertiary)}}@font-face{font-family:SF Pro Display;font-display:swap;font-style:italic;font-weight:400;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_regular-italic.d2fd3187.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_regular-italic.67a86ccb.woff) format("woff")}@font-face{font-family:SF Pro Display;font-display:swap;font-style:normal;font-weight:600;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_semibold.67a9b38a.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_semibold.550fdb58.woff) format("woff")}@font-face{font-family:SF Pro Display;font-display:swap;font-style:italic;font-weight:600;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_semibold-italic.9085b053.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_semibold-italic.efb9d645.woff) format("woff")}@font-face{font-family:SF Pro Display;font-display:swap;font-style:normal;font-weight:700;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_bold.2d753de7.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_bold.9b579979.woff) format("woff")}@font-face{font-family:SF Pro Display;font-display:swap;font-style:italic;font-weight:700;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_bold-italic.4a816f1c.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_bold-italic.b679b872.woff) format("woff")}@font-face{font-family:SF Pro Display;font-display:swap;font-style:normal;font-weight:400;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_regular.fcf85e10.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-display_regular.ef03eb67.woff) format("woff")}@font-face{font-family:SF Pro Text;font-display:swap;font-style:italic;font-weight:400;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_regular-italic.f54b8464.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_regular-italic.5d746292.woff) format("woff")}@font-face{font-family:SF Pro Text;font-display:swap;font-style:normal;font-weight:600;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_semibold.d1883d28.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_semibold.979b2da5.woff) format("woff")}@font-face{font-family:SF Pro Text;font-display:swap;font-style:italic;font-weight:600;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_semibold-italic.36b9e2e0.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_semibold-italic.d82de0b5.woff) format("woff")}@font-face{font-family:SF Pro Text;font-display:swap;font-style:normal;font-weight:700;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_bold.5011345b.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_bold.e656f863.woff) format("woff")}@font-face{font-family:SF Pro Text;font-display:swap;font-style:italic;font-weight:700;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_bold-italic.6322e95b.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_bold-italic.81d2153a.woff) format("woff")}@font-face{font-family:SF Pro Text;font-display:swap;font-style:normal;font-weight:400;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_regular.474d73a7.woff2) format("woff2"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-pro-text_regular.1f251e61.woff) format("woff")}@font-face{font-family:SF Mono;font-display:swap;font-style:italic;font-weight:400;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-mono_regular-italic.a8eda498.woff) format("woff")}@font-face{font-family:SF Mono;font-display:swap;font-style:normal;font-weight:600;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-mono_semibold.2b2f3e33.woff) format("woff")}@font-face{font-family:SF Mono;font-display:swap;font-style:italic;font-weight:600;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-mono_semibold-italic.16828b33.woff) format("woff")}@font-face{font-family:SF Mono;font-display:swap;font-style:normal;font-weight:700;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-mono_bold.8b7d5e57.woff) format("woff")}@font-face{font-family:SF Mono;font-display:swap;font-style:italic;font-weight:700;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-mono_bold-italic.6796471a.woff) format("woff")}@font-face{font-family:SF Mono;font-display:swap;font-style:normal;font-weight:400;src:local("☺︎"),url(/web/20211007150851im_/https://developer.apple.com/tutorials/fonts/sf-mono_regular.a45866e9.woff) format("woff")}body{--color-fill:#fff;--color-fill-secondary:#fbfbfd;--color-fill-tertiary:#f5f5f7;--color-fill-quaternary:#252525;--color-fill-blue:#0071e3;--color-fill-blue-secondary:#f6fbff;--color-fill-gray:#1d1d1f;--color-fill-gray-secondary:#86868b;--color-fill-gray-tertiary:#d2d2d7;--color-fill-gray-quaternary:#e8e8ed;--color-fill-green-secondary:#f5fff6;--color-fill-light-blue-secondary:#f1f7ff;--color-fill-light-gray-secondary:#f5f5f7;--color-fill-orange-secondary:#fff9f4;--color-fill-purple-secondary:#fcf8ff;--color-fill-red-secondary:#fff2f4;--color-fill-teal-secondary:#faffff;--color-fill-yellow-secondary:#fffef2;--color-figure-blue:#06c;--color-figure-gray:#1d1d1f;--color-figure-gray-secondary:#6e6e73;--color-figure-gray-secondary-alt:#515154;--color-figure-gray-tertiary:#86868b;--color-figure-green:#008009;--color-figure-light-blue:#4ca9ff;--color-figure-light-gray:#696969;--color-figure-orange:#bf4800;--color-figure-pink:#b0b;--color-figure-purple:#8c28c2;--color-figure-red:#e30000;--color-figure-teal:#007c78;--color-figure-yellow:#936d00;--color-highlight-green:#e4fee6;--color-highlight-red:#f8dddd;--color-tutorials-teal:#38a39c;--color-aside-deprecated:var(--color-figure-orange);--color-aside-deprecated-background:var(--color-fill-orange-secondary);--color-aside-deprecated-border:var(--color-figure-orange);--color-aside-experiment:var(--color-figure-purple);--color-aside-experiment-background:var(--color-fill-purple-secondary);--color-aside-experiment-border:var(--color-figure-purple);--color-aside-important:var(--color-figure-yellow);--color-aside-important-background:var(--color-fill-yellow-secondary);--color-aside-important-border:var(--color-figure-yellow);--color-aside-note:var(--color-figure-light-gray);--color-aside-note-background:var(--color-fill-light-gray-secondary);--color-aside-note-border:var(--color-figure-light-gray);--color-aside-tip:var(--color-figure-teal);--color-aside-tip-background:var(--color-fill-teal-secondary);--color-aside-tip-border:var(--color-figure-teal);--color-aside-warning:var(--color-figure-red);--color-aside-warning-background:var(--color-fill-red-secondary);--color-aside-warning-border:var(--color-figure-red);--color-badge-default:var(--color-figure-teal);--color-badge-dark-default:#00c2bb;--color-badge-spi:var(--color-figure-pink);--color-badge-dark-spi:#f14bf1;--color-button-background-active:var(--color-fill-blue);--color-button-background-hover:#0077ed;--color-changes-added:var(--color-figure-green);--color-changes-added-hover:var(--color-fill-green-secondary);--color-changes-deprecated:var(--color-figure-orange);--color-changes-deprecated-hover:rgba(191,72,0,0.05);--color-changes-modified:var(--color-figure-purple);--color-changes-modified-hover:var(--color-fill-purple-secondary);--color-changes-modified-previous-background:var(--color-fill-purple-secondary);--color-code-background:var(--color-fill-tertiary);--color-code-collapsible-background:var(--color-fill-gray-quaternary);--color-code-line-highlight:var(--color-fill-light-blue-secondary);--color-code-line-highlight-border:var(--color-figure-light-blue);--color-code-plain:#000;--color-dropdown-border:var(--color-fill-gray-tertiary);--color-eyebrow:inherit;--color-grid:var(--color-fill-gray-tertiary);--color-hero-eyebrow:inherit;--color-nav-outlines:var(--color-fill-gray-tertiary);--color-nav-dark-outlines:#424245;--color-nav-dark-solid-background:#2d2d2d;--color-not-found-input-background:var(--color-fill-secondary);--color-not-found-input-border:var(--color-fill-gray-tertiary);--color-step-caption:var(--color-fill-gray-tertiary);--color-step-focused:var(--color-figure-light-blue);--color-step-text:var(--color-figure-gray);--color-svg-icon:#86868b;--color-tabnav-item-border-color:var(--color-fill-gray-tertiary);--color-tutorial-navbar-dropdown-border:var(--color-dropdown-border);--color-tutorials-overview-background:radial-gradient(circle at center 70%,#242424 0%,#0c0c0c 100%);--color-tutorials-overview-content:#f5f5f7;--color-tutorials-overview-content-alt:#a1a1a6;--color-tutorials-overview-eyebrow:#a1a1a6;--color-tutorials-overview-icon:#a1a1a6;--color-tutorials-overview-navigation-link-active:#f5f5f7;--color-tutorials-overview-navigation-link-hover:#a1a1a6;--color-welcome-technologies-card-accent:var(--color-figure-blue)}@media screen{body[data-color-scheme=dark]{--color-fill:#000;--color-fill-secondary:#161617;--color-fill-tertiary:#1d1d1f;--color-fill-blue:#0071e3;--color-fill-blue-secondary:#001931;--color-fill-gray:#f5f5f7;--color-fill-gray-secondary:#6e6e73;--color-fill-gray-tertiary:#424245;--color-fill-gray-quaternary:#333336;--color-fill-green-secondary:#002b03;--color-fill-light-blue-secondary:#002a51;--color-fill-light-gray-secondary:#323232;--color-fill-orange-secondary:#290d00;--color-fill-purple-secondary:#190325;--color-fill-red-secondary:#300;--color-fill-teal-secondary:#002d2b;--color-fill-yellow-secondary:#2b2000;--color-figure-blue:#2997ff;--color-figure-gray:#f5f5f7;--color-figure-gray-secondary:#86868b;--color-figure-gray-secondary-alt:#a1a1a6;--color-figure-gray-tertiary:#6e6e73;--color-figure-green:#03a10e;--color-figure-light-blue:#7dc1ff;--color-figure-light-gray:#9a9a9e;--color-figure-orange:#f56300;--color-figure-pink:#f14bf1;--color-figure-purple:#a95ed2;--color-figure-red:#ff3037;--color-figure-teal:#00c2bb;--color-figure-yellow:#ad8200;--color-highlight-green:#032603;--color-highlight-red:#410606;--color-tutorials-teal:#54c4bc;--color-article-body-background:var(--color-fill-secondary);--color-changes-deprecated-hover:rgba(245,99,0,0.05);--color-code-background:var(--color-fill-gray-quaternary);--color-code-collapsible-background:var(--color-fill-tertiary);--color-code-line-highlight:var(--color-fill-gray-tertiary);--color-code-plain:#fff;--color-not-found-input-background:var(--color-fill-gray-quaternary);--color-step-background:var(--color-fill-gray-quaternary);--color-svg-icon:#6e6e73;--color-tutorial-navbar-dropdown-background:var(--color-nav-dark-solid-background);--color-tutorial-navbar-dropdown-border:var(--color-fill-gray-tertiary)}}@media screen and (prefers-color-scheme:dark){body[data-color-scheme=auto]{--color-fill:#000;--color-fill-secondary:#161617;--color-fill-tertiary:#1d1d1f;--color-fill-blue:#0071e3;--color-fill-blue-secondary:#001931;--color-fill-gray:#f5f5f7;--color-fill-gray-secondary:#6e6e73;--color-fill-gray-tertiary:#424245;--color-fill-gray-quaternary:#333336;--color-fill-green-secondary:#002b03;--color-fill-light-blue-secondary:#002a51;--color-fill-light-gray-secondary:#323232;--color-fill-orange-secondary:#290d00;--color-fill-purple-secondary:#190325;--color-fill-red-secondary:#300;--color-fill-teal-secondary:#002d2b;--color-fill-yellow-secondary:#2b2000;--color-figure-blue:#2997ff;--color-figure-gray:#f5f5f7;--color-figure-gray-secondary:#86868b;--color-figure-gray-secondary-alt:#a1a1a6;--color-figure-gray-tertiary:#6e6e73;--color-figure-green:#03a10e;--color-figure-light-blue:#7dc1ff;--color-figure-light-gray:#9a9a9e;--color-figure-orange:#f56300;--color-figure-pink:#f14bf1;--color-figure-purple:#a95ed2;--color-figure-red:#ff3037;--color-figure-teal:#00c2bb;--color-figure-yellow:#ad8200;--color-highlight-green:#032603;--color-highlight-red:#410606;--color-tutorials-teal:#54c4bc;--color-article-body-background:var(--color-fill-secondary);--color-changes-deprecated-hover:rgba(245,99,0,0.05);--color-code-background:var(--color-fill-gray-quaternary);--color-code-collapsible-background:var(--color-fill-tertiary);--color-code-line-highlight:var(--color-fill-gray-tertiary);--color-code-plain:#fff;--color-not-found-input-background:var(--color-fill-gray-quaternary);--color-step-background:var(--color-fill-gray-quaternary);--color-svg-icon:#6e6e73;--color-tutorial-navbar-dropdown-background:var(--color-nav-dark-solid-background);--color-tutorial-navbar-dropdown-border:var(--color-fill-gray-tertiary)}}#main{outline-style:none}[data-v-586eec29] :focus:not(input):not(textarea):not(select){outline:none}.fromkeyboard[data-v-586eec29] :focus:not(input):not(textarea):not(select){outline:4px solid var(--color-focus-color);outline-offset:1px}#app[data-v-586eec29]{display:grid;grid-template-rows:auto 1fr auto;min-height:100%}#app[data-v-586eec29]>*{min-width:0}.container[data-v-721afd92]{margin-left:auto;margin-right:auto;width:980px;outline-style:none;margin-top:92px;margin-bottom:140px}@media only screen and (max-width:1068px){.container[data-v-721afd92]{width:692px}}@media only screen and (max-width:735px){.container[data-v-721afd92]{width:87.5%}}.error-content[data-v-721afd92]{box-sizing:border-box;width:502px;margin-left:auto;margin-right:auto;margin-bottom:54px}@media only screen and (max-width:1068px){.error-content[data-v-721afd92]{width:420px;margin-bottom:45px}}@media only screen and (max-width:735px){.error-content[data-v-721afd92]{max-width:330px;width:auto;margin-bottom:35px}}.title[data-v-721afd92]{text-align:center;font-size:2.82353rem;line-height:1.08349;font-weight:600;letter-spacing:-.003em;font-family:SF Pro Display,system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Arial,sans-serif}@media only screen and (max-width:1068px){.title[data-v-721afd92]{font-size:2.35294rem;line-height:1.1;font-weight:600;letter-spacing:0;font-family:SF Pro Display,system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Arial,sans-serif}}@media only screen and (max-width:735px){.title[data-v-721afd92]{font-size:1.88235rem;line-height:1.125;font-weight:600;letter-spacing:.013em;font-family:SF Pro Display,system-ui,-apple-system,BlinkMacSystemFont,Helvetica Neue,Helvetica,Arial,sans-serif}}.svg-icon[data-v-7abeccde]{fill:var(--colors-svg-icon-fill-light,var(--color-svg-icon));transform:scale(1);-webkit-transform:scale(1);overflow:visible}.theme-dark .svg-icon[data-v-7abeccde]{fill:var(--colors-svg-icon-fill-dark,var(--color-svg-icon))}.svg-icon.icon-inline[data-v-7abeccde]{display:inline-block;vertical-align:middle;fill:currentColor}.svg-icon.icon-inline[data-v-7abeccde] .svg-icon-stroke{stroke:currentColor}[data-v-7abeccde] .svg-icon-stroke{stroke:var(--colors-svg-icon-fill-light,var(--color-svg-icon))}.theme-dark[data-v-7abeccde] .svg-icon-stroke{stroke:var(--colors-svg-icon-fill-dark,var(--color-svg-icon))}
/*
     FILE ARCHIVED ON 15:08:51 Oct 07, 2021 AND RETRIEVED FROM THE
     INTERNET ARCHIVE ON 01:27:21 Feb 21, 2026.
     JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE.

     ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C.
     SECTION 108(a)(3)).
*/
/*
playback timings (ms):
  captures_list: 0.724
  exclusion.robots: 0.088
  exclusion.robots.policy: 0.075
  esindex: 0.01
  cdx.remote: 26.674
  LoadShardBlock: 426.598 (3)
  PetaboxLoader3.resolve: 734.469 (4)
  PetaboxLoader3.datanode: 295.744 (4)
  load_resource: 677.693
*/