1<!DOCTYPE html> 2<html lang="en"> 3 4<head> 5 <title> 6 SwiftUI Index â mackuba.eu 7 </title> 8 9 <meta charset="UTF-8"> 10 <meta name="viewport" content="width=device-width"> 11 <meta name="author" content="Kuba Suder"> 12 13 <meta property="og:url" content="https://mackuba.eu/swiftui/"> 14 <meta property="og:title" content="SwiftUI Index"> 15 <meta property="og:type" content="website"> 16 <meta property="og:description" content="Complete ordered index & changelog of all SwiftUI views, properties and modifiers"> 17 <meta property="og:image" content="https://mackuba.eu/images/projects/swiftui_screen.png?1790026422"> 18 19 <meta name="fediverse:creator" content="@[email protected]"> 20 21 <!-- 22 icons thx to: 23 Paul Robert Lloyd http://paulrobertlloyd.com 24 Mark James http://www.famfamfam.com 25 Smashing Magazine http://www.smashingmagazine.com 26 Ahmad Galal http://3nc.deviantart.com/ 27 Artua Design Studios http://www.artua.com/ 28 W3C http://www.w3.org/html/logo/ 29 Open Clip Art Library http://www.openclipart.org/ 30 Ãmer ÃETİN http://omercetin.deviantart.com/ 31 HiClipart https://www.hiclipart.com (note) 32 --> 33 34 <link rel="alternate" href="https://mackuba.eu/feed.xml" type="application/atom+xml" title="Posts feed (Atom)"> 35 <link rel="alternate" href="https://mackuba.eu/feed-notes.xml" type="application/atom+xml" title="Notes feed (Atom)"> 36 <link rel="alternate" href="https://mackuba.eu/feed-all.xml" type="application/atom+xml" title="Feed with everything (Atom)"> 37 38 <link rel="icon" href="/favicon.ico?1790026422"> 39 <link rel="shortcut icon" href="/favicon.ico?1790026422"> 40 <link rel="apple-touch-icon" href="/apple-touch-icon.png?1790026422"> 41 42 <link rel="me" href="https://101010.pl/@mackuba"> 43 44 <link rel="site.standard.publication" href="at://did:plc:oio4hkxaop4ao4wz2pp3f4cr/site.standard.publication/3mn5mackuba26"> 45 46 47 <link href="/javascripts/photoswipe/photoswipe.css?1790026422" rel="stylesheet" type="text/css" nonce="wfHrF7zl7+FivaRCPt5c6Q=="> 48 <link href="/stylesheets/style.css?1790026422" rel="stylesheet" type="text/css" nonce="wfHrF7zl7+FivaRCPt5c6Q=="> 49 <link href="/javascripts/highlighter/shSwift.css?1790026422" rel="stylesheet" type="text/css" nonce="wfHrF7zl7+FivaRCPt5c6Q=="> 50 51
51<script defer src="/javascripts/highlighter/shCore.js?1790026422" type="text/javascript" nonce="wfHrF7zl7+FivaRCPt5c6Q=="></script>
51 52
52<script defer src="/javascripts/highlighter/shAutoloader.js?1790026422" type="text/javascript" nonce="wfHrF7zl7+FivaRCPt5c6Q=="></script>
52 53
53<script defer src="/javascripts/blog.js?1790026422" type="text/javascript" nonce="wfHrF7zl7+FivaRCPt5c6Q=="></script>
53 54 55
55<script type="module"> 56 import PhotoSwipeLightbox from '/javascripts/photoswipe/photoswipe-lightbox.esm.min.js'; 57 window.PhotoSwipeLightbox = PhotoSwipeLightbox; 58 </script>
58 59 60
60<script> 61 let _paq = window._paq = window._paq || []; 62 _paq.push(['setExcludedQueryParams', ['fbclid', 'tdsourcetag']]); 63 _paq.push(['setTrackerUrl', 'https://mackuba.eu/m/ping']); 64 _paq.push(['setRequestMethod', 'POST']); 65 _paq.push(['setSiteId', '5']); 66 _paq.push(['disableAlwaysUseSendBeacon']); 67 _paq.push(['disableCookies']); 68 _paq.push(['trackPageView']); 69 _paq.push(['enableLinkTracking']); 70 </script>
70 71</head> 72 73<body class="swiftui_grouped"> 74 <header> 75 <div class="title"> 76 <h1><a href="/">MacKuba</a></h1> 77 <h4><span class="japko">ð</span> Kuba Suder's blog on Mac/iOS & web dev</h4> 78 </div> 79 80 <nav> 81 <a href="https://blue.mackuba.eu">Bluesky</a> 82 <a href="/swiftui/">SwiftUI</a> 83 <a href="/notes/">Notes</a> 84 85 <a href="/projects">Projects</a> 86 <a href="/about">About me</a> 87 88 <span class="icons"> 89 <a rel="me" title="Tangled" href="https://tangled.org/mackuba.eu" 90 target="_blank"><img class="tangled" alt="Tangled" src="/images/tangled_dolly.svg?1790026422" width="20" height="20"></a> 91 92 <a rel="me" title="Bluesky" href="https://bsky.app/profile/did:plc:oio4hkxaop4ao4wz2pp3f4cr" 93 target="_blank"><img class="bluesky" alt="Bluesky" src="/images/bsky-logo.svg?1790026422" width="20" height="20"></a> 94 95 <a rel="me" title="Mastodon" href="https://martianbase.net/@mackuba" 96 target="_blank"><img class="mastodon" alt="Mastodon" src="/images/masto-logo.svg?1790026422" width="20" height="20"></a> 97 </span> 98 </nav> 99 </header> 100 101 <div id="page"> 102 <div id="page_body"> 103 <article class="swiftui"> 104 <header> 105 <h2><a href="/swiftui/index">SwiftUI Index</a></h2> 106 </header> 107 <div class="body swiftui swiftui-index show-iOS show-macOS show-watchOS show-tvOS show-xrOS"> 108 <nav> 109 <a href="/swiftui/" class="selected">Grouped by topic</a> 110 | 111 <a href="/swiftui/changelog" class="">Changes by version</a> 112 | 113 <a href="/swiftui/index" class="">Combined index</a> 114</nav> 115
116<script type="text/javascript" nonce="wfHrF7zl7+FivaRCPt5c6Q=="> 117 let searchTimeout; 118 119 function toggleOSSelection(checkbox) { 120 document.querySelector('div.body').classList.toggle(`show-${checkbox.value}`, checkbox.checked); 121 } 122 123 function onQueryChanged(searchField) { 124 let query = searchField.value.trim().toLowerCase(); 125 126 clearTimeout(searchTimeout); 127 searchTimeout = setTimeout(() => filterItems(query), 150); 128 } 129 130 function filterItems(query) { 131 let items = Array.from(document.querySelectorAll('.swiftui ul li')); 132 let sections = Array.from(document.querySelectorAll('.swiftui .section')); 133 134 if (query.length > 0) { 135 items.forEach(li => { 136 let a = li.querySelector('p a'); 137 let framework = li.querySelector('p > span.tag'); 138 let infos = Array.from(li.querySelectorAll('p.item-info')); 139 let tags = Array.from(li.querySelectorAll('span.tag[data-version]')); 140 141 let tagMatches = (query.match(/[0-9]/)) 142 ? (t => t.innerText.toLowerCase().includes(query)) 143 : (t => t.getAttribute('data-version').includes(query)); 144 145 let matched = !a 146 || a.innerText.toLowerCase().includes(query) 147 || framework && framework.innerText.toLowerCase().includes(query) 148 || infos.some(i => i.innerText.toLowerCase().includes(query)) 149 || tags.some(t => tagMatches(t)); 150 151 li.style.display = matched ? '' : 'none'; 152 }); 153 154 sections.forEach(s => { 155 let sectionItems = Array.from(s.querySelectorAll('ul li')); 156 let hasVisibleItems = sectionItems.some(li => li.className != 'empty' && li.style.display != 'none'); 157 158 s.style.display = hasVisibleItems ? '' : 'none'; 159 }); 160 } else { 161 items.forEach(li => { li.style.display = '' }); 162 sections.forEach(s => { s.style.display = '' }); 163 } 164 } 165 166 let agent = navigator.userAgent; 167 168 if (agent && agent.includes('Safari/') && agent.includes('Macintosh') && !agent.includes('Chrome/')) {
169 let css = "input[type=search] { padding: 0px 3px; } "; 170 css += "input[type=checkbox] { position: relative; top: -1px; } "; 171 172 let style = document.createElement('style'); 173 style.type = "text/css"; 174 style.appendChild(document.createTextNode(css)); 175 176 document.head.appendChild(style); 177 } 178</script>
178 179 180<div class="filter"> 181 <p> 182 Filter: 183 <span class="platform"> 184 <input type="checkbox" id="os_filter_ios" value="iOS" checked 185 onchange="toggleOSSelection(this);"> 186 <label for="os_filter_ios">iOS</label> 187 </span> 188 <span class="platform"> 189 <input type="checkbox" id="os_filter_macos" value="macOS" checked 190 onchange="toggleOSSelection(this);"> 191 <label for="os_filter_macos">macOS</label> 192 </span> 193 <span class="platform"> 194 <input type="checkbox" id="os_filter_watchos" value="watchOS" checked 195 onchange="toggleOSSelection(this);"> 196 <label for="os_filter_watchos">watchOS</label> 197 </span> 198 <span class="platform"> 199 <input type="checkbox" id="os_filter_tvos" value="tvOS" checked 200 onchange="toggleOSSelection(this);"> 201 <label for="os_filter_tvos">tvOS</label> 202 </span> 203 <span class="platform"> 204 <input type="checkbox" id="os_filter_xros" value="xrOS" checked 205 onchange="toggleOSSelection(this);"> 206 <label for="os_filter_xros">xrOS</label> 207 </span> 208 209 <span class="separator">|</span> 210 211 <span class="search"> 212 Search: <input type="search" id="swiftui_item_search" oninput="onQueryChanged(this);"> 213 </span> 214 </p> 215</div> 216 217<p class="header-info">Note: Catalyst version tag is only shown if the availability differs from iOS.</p> 218 219 <p class="header-info">Type e.g. â16â or âmacos 13â in the search field to match a specific OS version.</p> 220 221 <div class="section all-platforms"> 222 <h3>Views</h3> 223 224 225 226 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 227 <h4>Animations</h4> 228 229 <ul> 230 <li class="empty"></li> 231 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 232 <p> 233 <a href="https://developer.apple.com/documentation/swiftui/keyframeanimator">KeyframeAnimator</a> 234 235 236 237 <span class="os-list"> 238 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 239 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 240 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 241 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 242 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 243 </span> 244 </p> 245 246 <p class="item-info">A container that animates its content with keyframes.</p> 247 248</li> 249 250 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 251 <p> 252 <a href="https://developer.apple.com/documentation/swiftui/phaseanimator">PhaseAnimator</a> 253 254 255 256 <span class="os-list"> 257 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 258 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 259 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 260 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 261 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 262 </span> 263 </p> 264 265 <p class="item-info">A container that animates its content by automatically cycling through a collection of phases that you provide, each defining a discrete step within an animation.</p> 266 267</li> 268 269 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 270 <p> 271 <a href="https://developer.apple.com/documentation/swiftui/timelineview">TimelineView</a> 272 273 274 275 <span class="os-list"> 276 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 277 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 278 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 279 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 280 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 281 </span> 282 </p> 283 284 <p class="item-info">A view that updates according to a schedule that you provide.</p> 285 286</li> 287 288 </ul> 289 </div> 290 291 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 292 <h4>Controls and Indicators</h4> 293 294 <ul> 295 <li class="empty"></li> 296 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 297 <p> 298 <a href="https://developer.apple.com/documentation/swiftui/button">Button</a> 299 300 301 302 <span class="os-list">
303 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 304 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 305 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 306 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 307 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 308 </span> 309 </p> 310 311 <p class="item-info">A control that initiates an action.</p> 312 313</li> 314 315 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 316 <p> 317 <a href="https://developer.apple.com/documentation/swiftui/buttonbordershape">ButtonBorderShape</a> 318 319 320 321 <span class="os-list"> 322 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 323 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 324 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 325 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 326 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 327 </span> 328 </p> 329 330 <p class="item-info">A shape that is used to draw a buttonâs border.</p> 331 332</li> 333 334 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 335 <p> 336 <a href="https://developer.apple.com/documentation/swiftui/colorpicker">ColorPicker</a> 337 338 339 340 <span class="os-list"> 341 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 342 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 343 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 344 </span> 345 </p> 346 347 <p class="item-info">A control used to select a color from the system color picker UI.</p> 348 349</li> 350 351 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 352 <p> 353 <a href="https://developer.apple.com/documentation/swiftui/contentunavailableview">ContentUnavailableView</a> 354 355 356 357 <span class="os-list"> 358 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 359 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 360 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 361 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 362 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 363 </span> 364 </p> 365 366 <p class="item-info">An interface, consisting of a label and additional content, that you display when the content of your app is unavailable to users.</p> 367 368</li> 369 370 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 371 <p> 372 <a href="https://developer.apple.com/documentation/swiftui/datepicker">DatePicker</a> 373 374 375 376 <span class="os-list"> 377 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 378 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 379 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 380 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 381 </span> 382 </p> 383 384 <p class="item-info">A control for selecting an absolute date.</p> 385 386</li> 387 388 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 389 <p> 390 <a href="https://developer.apple.com/documentation/swiftui/defaultdateprogresslabel">DefaultDateProgressLabel</a> 391 392 393 394 <span class="os-list"> 395 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 396 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 397 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 398 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 399 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 400 </span> 401 </p> 402 403 <p class="item-info">The default type of the current value label when used by a date-relative progress view.</p> 404 405</li> 406 407 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 408 <p> 409 <a href="https://developer.apple.com/documentation/swiftui/editbutton">EditButton</a> 410 411 412 413 <span class="os-list"> 414 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 415 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 416 </span> 417 </p> 418 419 <p class="item-info">A button that toggles the edit mode environment value.</p> 420 421</li> 422 423 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 424 <p> 425 <a href="https://developer.apple.com/documentation/swiftui/gauge">Gauge</a> 426 427 428 429 <span class="os-list">
430 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 431 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 432 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 433 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 434 </span> 435 </p> 436 437 <p class="item-info">A view that shows a value within a range.</p> 438 439</li> 440 441 <li class="with-macOS with-xrOS"> 442 <p> 443 <a href="https://developer.apple.com/documentation/swiftui/helplink">HelpLink</a> 444 445 446 447 <span class="os-list"> 448 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 449 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 450 </span> 451 </p> 452 453 <p class="item-info">A button with a standard appearance that opens app-specific help documentation.</p> 454 455</li> 456 457 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 458 <p> 459 <a href="https://developer.apple.com/documentation/swiftui/link">Link</a> 460 461 462 463 <span class="os-list"> 464 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 465 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 466 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 467 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 468 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 469 </span> 470 </p> 471 472 <p class="item-info">A control for navigating to a URL.</p> 473 474</li> 475 476 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 477 <p> 478 <a href="https://developer.apple.com/documentation/swiftui/multidatepicker">MultiDatePicker</a> 479 480 481 482 <span class="os-list"> 483 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 484 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 485 </span> 486 </p> 487 488 <p class="item-info">A control for picking multiple dates.</p> 489 490</li> 491 492 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 493 <p> 494 <a href="https://developer.apple.com/documentation/swiftui/pastebutton">PasteButton</a> 495 496 497 498 <span class="os-list"> 499 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 500 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 501 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 502 </span> 503 </p> 504 505 <p class="item-info">A system button that reads items from the pasteboard and delivers it to a closure.</p> 506 507</li> 508 509 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 510 <p> 511 <a href="https://developer.apple.com/documentation/swiftui/picker">Picker</a> 512 513 514 515 <span class="os-list"> 516 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 517 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 518 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 519 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 520 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 521 </span> 522 </p> 523 524 <p class="item-info">A control for selecting from a set of mutually exclusive values.</p> 525 526</li> 527 528 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 529 <p> 530 <a href="https://developer.apple.com/documentation/swiftui/progressview">ProgressView</a> 531 532 533 534 <span class="os-list"> 535 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 536 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 537 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 538 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 539 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 540 </span> 541 </p> 542 543 <p class="item-info">A view that shows the progress toward completion of a task.</p> 544 545</li> 546 547 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 548 <p> 549 <a href="https://developer.apple.com/documentation/swiftui/sharelink">ShareLink</a> 550 551 552 553 <span class="os-list"> 554 <span class="tag iOS" data-version="16.0">iOS 16.0</span>
555 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 556 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 557 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 558 </span> 559 </p> 560 561 <p class="item-info">A view that controls a sharing presentation.</p> 562 563</li> 564 565 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 566 <p> 567 <a href="https://developer.apple.com/documentation/swiftui/slider">Slider</a> 568 569 570 571 <span class="os-list"> 572 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 573 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 574 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 575 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 576 </span> 577 </p> 578 579 <p class="item-info">A control for selecting a value from a bounded linear range of values.</p> 580 581</li> 582 583 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 584 <p> 585 <a href="https://developer.apple.com/documentation/swiftui/stepper">Stepper</a> 586 587 588 589 <span class="os-list"> 590 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 591 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 592 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 593 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 594 </span> 595 </p> 596 597 <p class="item-info">A control that performs increment and decrement actions.</p> 598 599</li> 600 601 <li class="with-watchOS"> 602 <p> 603 <a href="https://developer.apple.com/documentation/swiftui/textfieldlink">TextFieldLink</a> 604 605 606 607 <span class="os-list"> 608 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 609 </span> 610 </p> 611 612 <p class="item-info">A control that requests text input from the user when pressed.</p> 613 614</li> 615 616 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 617 <p> 618 <a href="https://developer.apple.com/documentation/swiftui/toggle">Toggle</a> 619 620 621 622 <span class="os-list"> 623 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 624 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 625 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 626 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 627 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 628 </span> 629 </p> 630 631 <p class="item-info">A control that toggles between on and off states.</p> 632 633</li> 634 635 </ul> 636 </div> 637 638 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 639 <h4>Documents</h4> 640 641 <ul> 642 <li class="empty"></li> 643 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 644 <p> 645 <a href="https://developer.apple.com/documentation/swiftui/renamebutton">RenameButton</a> 646 647 648 649 <span class="os-list"> 650 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 651 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 652 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 653 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 654 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 655 </span> 656 </p> 657 658 <p class="item-info">A button that triggers a standard rename action.</p> 659 660</li> 661 662 </ul> 663 </div> 664 665 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 666 <h4>Drawing and Graphics</h4> 667 668 <ul> 669 <li class="empty"></li> 670 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 671 <p> 672 <a href="https://developer.apple.com/documentation/swiftui/angulargradient">AngularGradient</a> 673 674 675 676 <span class="os-list"> 677 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 678 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 679 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span>
680 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 681 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 682 </span> 683 </p> 684 685 <p class="item-info">An angular gradient.</p> 686 687</li> 688 689 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 690 <p> 691 <a href="https://developer.apple.com/documentation/swiftui/canvas">Canvas</a> 692 693 694 695 <span class="os-list"> 696 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 697 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 698 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 699 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 700 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 701 </span> 702 </p> 703 704 <p class="item-info">A view type that supports immediate mode drawing.</p> 705 706</li> 707 708 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 709 <p> 710 <a href="https://developer.apple.com/documentation/swiftui/color">Color</a> 711 712 713 714 <span class="os-list"> 715 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 716 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 717 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 718 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 719 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 720 </span> 721 </p> 722 723 <p class="item-info">A representation of a color that adapts to a given context.</p> 724 725</li> 726 727 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 728 <p> 729 <a href="https://developer.apple.com/documentation/swiftui/ellipticalgradient">EllipticalGradient</a> 730 731 732 733 <span class="os-list"> 734 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 735 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 736 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 737 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 738 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 739 </span> 740 </p> 741 742 <p class="item-info">A radial gradient that draws an ellipse.</p> 743 744</li> 745 746 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 747 <p> 748 <a href="https://developer.apple.com/documentation/swiftui/geometryreader">GeometryReader</a> 749 750 751 752 <span class="os-list"> 753 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 754 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 755 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 756 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 757 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 758 </span> 759 </p> 760 761 <p class="item-info">A container view that defines its content as a function of its own size and coordinate space.</p> 762 763</li> 764 765 <li class="with-xrOS"> 766 <p> 767 <a href="https://developer.apple.com/documentation/swiftui/geometryreader3d">GeometryReader3D</a> 768 769 770 771 <span class="os-list"> 772 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 773 </span> 774 </p> 775 776 <p class="item-info">A container view that defines its content as a function of its own size and coordinate space.</p> 777 778</li> 779 780 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 781 <p> 782 <a href="https://developer.apple.com/documentation/swiftui/lineargradient">LinearGradient</a> 783 784 785 786 <span class="os-list"> 787 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 788 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 789 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 790 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 791 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 792 </span> 793 </p> 794 795 <p class="item-info">A linear gradient.</p> 796 797</li> 798 799 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 800 <p> 801 <a href="https://developer.apple.com/documentation/swiftui/radialgradient">RadialGradient</a> 802 803 804 805 <span class="os-list">
806 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 807 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 808 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 809 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 810 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 811 </span> 812 </p> 813 814 <p class="item-info">A radial gradient.</p> 815 816</li> 817 818 </ul> 819 </div> 820 821 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 822 <h4>Images</h4> 823 824 <ul> 825 <li class="empty"></li> 826 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 827 <p> 828 <a href="https://developer.apple.com/documentation/swiftui/asyncimage">AsyncImage</a> 829 830 831 832 <span class="os-list"> 833 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 834 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 835 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 836 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 837 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 838 </span> 839 </p> 840 841 <p class="item-info">A view that asynchronously loads and displays an image.</p> 842 843</li> 844 845 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 846 <p> 847 <a href="https://developer.apple.com/documentation/swiftui/image">Image</a> 848 849 850 851 <span class="os-list"> 852 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 853 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 854 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 855 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 856 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 857 </span> 858 </p> 859 860 <p class="item-info">A view that displays an image.</p> 861 862</li> 863 864 </ul> 865 </div> 866 867 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 868 <h4>Layout Fundamentals</h4> 869 870 <ul> 871 <li class="empty"></li> 872 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 873 <p> 874 <a href="https://developer.apple.com/documentation/swiftui/divider">Divider</a> 875 876 877 878 <span class="os-list"> 879 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 880 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 881 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 882 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 883 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 884 </span> 885 </p> 886 887 <p class="item-info">A visual element that can be used to separate other content.</p> 888 889</li> 890 891 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 892 <p> 893 <a href="https://developer.apple.com/documentation/swiftui/grid">Grid</a> 894 895 896 897 <span class="os-list"> 898 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 899 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 900 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 901 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 902 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 903 </span> 904 </p> 905 906 <p class="item-info">A container view that arranges other views in a two dimensional layout.</p> 907 908</li> 909 910 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 911 <p> 912 <a href="https://developer.apple.com/documentation/swiftui/gridrow">GridRow</a> 913 914 915 916 <span class="os-list"> 917 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 918 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 919 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 920 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 921 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 922 </span> 923 </p> 924 925 <p class="item-info">A horizontal row in a two dimensional grid container.</p> 926 927</li> 928 929 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 930 <p> 931 <a href="https://developer.apple.com/documentation/swiftui/hstack">HStack</a> 932 933 934 935 <span class="os-list">
936 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 937 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 938 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 939 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 940 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 941 </span> 942 </p> 943 944 <p class="item-info">A view that arranges its subviews in a horizontal line.</p> 945 946</li> 947 948 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 949 <p> 950 <a href="https://developer.apple.com/documentation/swiftui/lazyhgrid">LazyHGrid</a> 951 952 953 954 <span class="os-list"> 955 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 956 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 957 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 958 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 959 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 960 </span> 961 </p> 962 963 <p class="item-info">A container view that arranges its child views in a grid that grows horizontally, creating items only as needed.</p> 964 965</li> 966 967 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 968 <p> 969 <a href="https://developer.apple.com/documentation/swiftui/lazyhstack">LazyHStack</a> 970 971 972 973 <span class="os-list"> 974 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 975 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 976 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 977 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 978 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 979 </span> 980 </p> 981 982 <p class="item-info">A view that arranges its children in a line that grows horizontally, creating items only as needed.</p> 983 984</li> 985 986 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 987 <p> 988 <a href="https://developer.apple.com/documentation/swiftui/lazyvgrid">LazyVGrid</a> 989 990 991 992 <span class="os-list"> 993 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 994 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 995 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 996 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 997 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 998 </span> 999 </p> 1000 1001 <p class="item-info">A container view that arranges its child views in a grid that grows vertically, creating items only as needed.</p> 1002 1003</li> 1004 1005 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1006 <p> 1007 <a href="https://developer.apple.com/documentation/swiftui/lazyvstack">LazyVStack</a> 1008 1009 1010 1011 <span class="os-list"> 1012 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 1013 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 1014 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 1015 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 1016 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1017 </span> 1018 </p> 1019 1020 <p class="item-info">A view that arranges its children in a line that grows vertically, creating items only as needed.</p> 1021 1022</li> 1023 1024 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1025 <p> 1026 <a href="https://developer.apple.com/documentation/swiftui/spacer">Spacer</a> 1027 1028 1029 1030 <span class="os-list"> 1031 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1032 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1033 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1034 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1035 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1036 </span> 1037 </p> 1038 1039 <p class="item-info">A flexible space that expands along the major axis of its containing stack layout, or on both axes if not contained in a stack.</p> 1040 1041</li> 1042 1043 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1044 <p> 1045 <a href="https://developer.apple.com/documentation/swiftui/viewthatfits">ViewThatFits</a> 1046 1047 1048 1049 <span class="os-list">
1050 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 1051 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 1052 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 1053 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 1054 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1055 </span> 1056 </p> 1057 1058 <p class="item-info">A view that adapts to the available space by providing the first child view that fits.</p> 1059 1060</li> 1061 1062 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1063 <p> 1064 <a href="https://developer.apple.com/documentation/swiftui/vstack">VStack</a> 1065 1066 1067 1068 <span class="os-list"> 1069 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1070 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1071 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1072 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1073 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1074 </span> 1075 </p> 1076 1077 <p class="item-info">A view that arranges its subviews in a vertical line.</p> 1078 1079</li> 1080 1081 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1082 <p> 1083 <a href="https://developer.apple.com/documentation/swiftui/zstack">ZStack</a> 1084 1085 1086 1087 <span class="os-list"> 1088 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1089 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1090 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1091 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1092 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1093 </span> 1094 </p> 1095 1096 <p class="item-info">A view that overlays its subviews, aligning them in both axes.</p> 1097 1098</li> 1099 1100 </ul> 1101 </div> 1102 1103 <div class="section with-iOS with-macOS with-xrOS with-watchOS with-tvOS"> 1104 <h4>Lists</h4> 1105 1106 <ul> 1107 <li class="empty"></li> 1108 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 1109 <p> 1110 <a href="https://developer.apple.com/documentation/swiftui/disclosuregroup">DisclosureGroup</a> 1111 1112 1113 1114 <span class="os-list"> 1115 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 1116 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 1117 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1118 </span> 1119 </p> 1120 1121 <p class="item-info">A view that shows or hides another content view, based on the state of a disclosure control.</p> 1122 1123</li> 1124 1125 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1126 <p> 1127 <a href="https://developer.apple.com/documentation/swiftui/foreach">ForEach</a> 1128 1129 1130 1131 <span class="os-list"> 1132 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1133 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1134 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1135 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1136 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1137 </span> 1138 </p> 1139 1140 <p class="item-info">A structure that computes views on demand from an underlying collection of identified data.</p> 1141 1142</li> 1143 1144 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1145 <p> 1146 <a href="https://developer.apple.com/documentation/swiftui/list">List</a> 1147 1148 1149 1150 <span class="os-list"> 1151 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1152 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1153 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1154 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1155 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1156 </span> 1157 </p> 1158 1159 <p class="item-info">A container that presents rows of data arranged in a single column, optionally providing the ability to select one or more members.</p> 1160 1161</li> 1162 1163 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 1164 <p> 1165 <a href="https://developer.apple.com/documentation/swiftui/outlinegroup">OutlineGroup</a> 1166 1167 1168 1169 <span class="os-list">
1170 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 1171 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 1172 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1173 </span> 1174 </p> 1175 1176 <p class="item-info">A structure that computes views and disclosure groups on demand from an underlying collection of tree-structured, identified data.</p> 1177 1178</li> 1179 1180 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1181 <p> 1182 <a href="https://developer.apple.com/documentation/swiftui/section">Section</a> 1183 1184 1185 1186 <span class="os-list"> 1187 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1188 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1189 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1190 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1191 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1192 </span> 1193 </p> 1194 1195 <p class="item-info">A container view that you can use to add hierarchy to certain collection views.</p> 1196 1197</li> 1198 1199 </ul> 1200 </div> 1201 1202 <div class="section with-iOS with-macOS with-tvOS with-xrOS"> 1203 <h4>Menus and Commands</h4> 1204 1205 <ul> 1206 <li class="empty"></li> 1207 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 1208 <p> 1209 <a href="https://developer.apple.com/documentation/swiftui/menu">Menu</a> 1210 1211 1212 1213 <span class="os-list"> 1214 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 1215 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 1216 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 1217 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1218 </span> 1219 </p> 1220 1221 <p class="item-info">A control for presenting a menu of actions.</p> 1222 1223</li> 1224 1225 <li class="with-macOS"> 1226 <p> 1227 <a href="https://developer.apple.com/documentation/swiftui/menubutton">MenuButton</a> 1228 1229 1230 <span class="tag deprecated">Deprecated</span> 1231 1232 <span class="os-list"> 1233 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1234 </span> 1235 </p> 1236 1237 <p class="item-info">A button that displays a menu containing a list of choices when pressed.</p> 1238 1239 <p class="item-info">â Use Menu instead.</p> 1240</li> 1241 1242 </ul> 1243 </div> 1244 1245 <div class="section with-macOS with-iOS with-watchOS with-tvOS with-xrOS"> 1246 <h4>Navigation</h4> 1247 1248 <ul> 1249 <li class="empty"></li> 1250 <li class="with-macOS"> 1251 <p> 1252 <a href="https://developer.apple.com/documentation/swiftui/hsplitview">HSplitView</a> 1253 1254 1255 1256 <span class="os-list"> 1257 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1258 </span> 1259 </p> 1260 1261 <p class="item-info">A layout container that arranges its children in a horizontal line and allows the user to resize them using dividers placed between them.</p> 1262 1263</li> 1264 1265 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1266 <p> 1267 <a href="https://developer.apple.com/documentation/swiftui/navigationlink">NavigationLink</a> 1268 1269 1270 1271 <span class="os-list"> 1272 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1273 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1274 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1275 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1276 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1277 </span> 1278 </p> 1279 1280 <p class="item-info">A view that controls a navigation presentation.</p> 1281 1282</li> 1283 1284 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1285 <p> 1286 <a href="https://developer.apple.com/documentation/swiftui/navigationsplitview">NavigationSplitView</a> 1287 1288 1289 1290 <span class="os-list"> 1291 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 1292 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 1293 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span>
1294 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 1295 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1296 </span> 1297 </p> 1298 1299 <p class="item-info">A view that presents views in two or three columns, where selections in leading columns control presentations in subsequent columns.</p> 1300 1301</li> 1302 1303 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1304 <p> 1305 <a href="https://developer.apple.com/documentation/swiftui/navigationstack">NavigationStack</a> 1306 1307 1308 1309 <span class="os-list"> 1310 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 1311 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 1312 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 1313 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 1314 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1315 </span> 1316 </p> 1317 1318 <p class="item-info">A view that displays a root view and enables you to present additional views over the root view.</p> 1319 1320</li> 1321 1322 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1323 <p> 1324 <a href="https://developer.apple.com/documentation/swiftui/navigationview">NavigationView</a> 1325 1326 1327 <span class="tag deprecated">Deprecated</span> 1328 1329 <span class="os-list"> 1330 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1331 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1332 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 1333 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1334 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1335 </span> 1336 </p> 1337 1338 <p class="item-info">A view for presenting a stack of views that represents a visible path in a navigation hierarchy.</p> 1339 1340 <p class="item-info">â Use NavigationStack and NavigationSplitView instead.</p> 1341</li> 1342 1343 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1344 <p> 1345 <a href="https://developer.apple.com/documentation/swiftui/tabview">TabView</a> 1346 1347 1348 1349 <span class="os-list"> 1350 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1351 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1352 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 1353 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1354 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1355 </span> 1356 </p> 1357 1358 <p class="item-info">A view that switches between multiple child views using interactive user interface elements.</p> 1359 1360</li> 1361 1362 <li class="with-macOS"> 1363 <p> 1364 <a href="https://developer.apple.com/documentation/swiftui/vsplitview">VSplitView</a> 1365 1366 1367 1368 <span class="os-list"> 1369 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1370 </span> 1371 </p> 1372 1373 <p class="item-info">A layout container that arranges its children in a vertical line and allows the user to resize them using dividers placed between them.</p> 1374 1375</li> 1376 1377 </ul> 1378 </div> 1379 1380 <div class="section with-macOS"> 1381 <h4>Scenes</h4> 1382 1383 <ul> 1384 <li class="empty"></li> 1385 <li class="with-macOS"> 1386 <p> 1387 <a href="https://developer.apple.com/documentation/swiftui/settingslink">SettingsLink</a> 1388 1389 1390 1391 <span class="os-list"> 1392 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 1393 </span> 1394 </p> 1395 1396 <p class="item-info">A view that opens the Settings scene defined by an app.</p> 1397 1398</li> 1399 1400 </ul> 1401 </div> 1402 1403 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 1404 <h4>Scroll Views</h4> 1405 1406 <ul> 1407 <li class="empty"></li> 1408 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1409 <p> 1410 <a href="https://developer.apple.com/documentation/swiftui/scrollview">ScrollView</a> 1411 1412 1413 1414 <span class="os-list"> 1415 <span class="tag iOS" data-version="13.0">iOS 13.0</span>
1416 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1417 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1418 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1419 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1420 </span> 1421 </p> 1422 1423 <p class="item-info">A scrollable view.</p> 1424 1425</li> 1426 1427 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1428 <p> 1429 <a href="https://developer.apple.com/documentation/swiftui/scrollviewreader">ScrollViewReader</a> 1430 1431 1432 1433 <span class="os-list"> 1434 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 1435 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 1436 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 1437 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 1438 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1439 </span> 1440 </p> 1441 1442 <p class="item-info">A view that provides programmatic scrolling, by working with a proxy to scroll to known child views.</p> 1443 1444</li> 1445 1446 </ul> 1447 </div> 1448 1449 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 1450 <h4>Shapes</h4> 1451 1452 <ul> 1453 <li class="empty"></li> 1454 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1455 <p> 1456 <a href="https://developer.apple.com/documentation/swiftui/anyshape">AnyShape</a> 1457 1458 1459 1460 <span class="os-list"> 1461 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 1462 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 1463 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 1464 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 1465 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1466 </span> 1467 </p> 1468 1469 <p class="item-info">A type-erased shape value.</p> 1470 1471</li> 1472 1473 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1474 <p> 1475 <a href="https://developer.apple.com/documentation/swiftui/capsule">Capsule</a> 1476 1477 1478 1479 <span class="os-list"> 1480 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1481 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1482 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1483 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1484 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1485 </span> 1486 </p> 1487 1488 <p class="item-info">A capsule shape aligned inside the frame of the view containing it.</p> 1489 1490</li> 1491 1492 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1493 <p> 1494 <a href="https://developer.apple.com/documentation/swiftui/circle">Circle</a> 1495 1496 1497 1498 <span class="os-list"> 1499 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1500 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1501 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1502 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1503 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1504 </span> 1505 </p> 1506 1507 <p class="item-info">A circle centered on the frame of the view containing it.</p> 1508 1509</li> 1510 1511 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1512 <p> 1513 <a href="https://developer.apple.com/documentation/swiftui/containerrelativeshape">ContainerRelativeShape</a> 1514 1515 1516 1517 <span class="os-list"> 1518 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 1519 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 1520 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 1521 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 1522 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1523 </span> 1524 </p> 1525 1526 <p class="item-info">A shape that is replaced by an inset version of the current container shape. If no container shape was defined, is replaced by a re
1526ctangle.</p> 1527 1528</li> 1529 1530 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1531 <p> 1532 <a href="https://developer.apple.com/documentation/swiftui/ellipse">Ellipse</a> 1533 1534 1535 1536 <span class="os-list"> 1537 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1538 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1539 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1540 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1541 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1542 </span> 1543 </p> 1544 1545 <p class="item-info">An ellipse aligned inside the frame of the view containing it.</p> 1546 1547</li> 1548 1549 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1550 <p> 1551 <a href="https://developer.apple.com/documentation/swiftui/fillshapeview">FillShapeView</a> 1552 1553 1554 1555 <span class="os-list"> 1556 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 1557 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 1558 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 1559 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 1560 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1561 </span> 1562 </p> 1563 1564 <p class="item-info">A shape provider that fills its shape.</p> 1565 1566</li> 1567 1568 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1569 <p> 1570 <a href="https://developer.apple.com/documentation/swiftui/offsetshape">OffsetShape</a> 1571 1572 1573 1574 <span class="os-list"> 1575 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1576 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1577 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1578 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1579 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1580 </span> 1581 </p> 1582 1583 <p class="item-info">A shape with a translation offset transform applied to it.</p> 1584 1585</li> 1586 1587 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1588 <p> 1589 <a href="https://developer.apple.com/documentation/swiftui/path">Path</a> 1590 1591 1592 1593 <span class="os-list"> 1594 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1595 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1596 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1597 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1598 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1599 </span> 1600 </p> 1601 1602 <p class="item-info">The outline of a 2D shape.</p> 1603 1604</li> 1605 1606 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1607 <p> 1608 <a href="https://developer.apple.com/documentation/swiftui/rectangle">Rectangle</a> 1609 1610 1611 1612 <span class="os-list"> 1613 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1614 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1615 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1616 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1617 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1618 </span> 1619 </p> 1620 1621 <p class="item-info">A rectangular shape aligned inside the frame of the view containing it.</p> 1622 1623</li> 1624 1625 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1626 <p> 1627 <a href="https://developer.apple.com/documentation/swiftui/rotatedshape">RotatedShape</a> 1628 1629 1630 1631 <span class="os-list"> 1632 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1633 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1634 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1635 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1636 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1637 </span> 1638 </p> 1639 1640 <p class="item-info">A shape with a rotation transform applied to it.</p> 1641 1642</li> 1643 1644 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1645 <p> 1646 <a href="https://developer.apple.com/documentation/swiftui/roundedrectangle">RoundedRectangle</a> 1647 1648 1649 1650 <span class="os-list">
1651 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1652 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1653 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1654 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1655 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1656 </span> 1657 </p> 1658 1659 <p class="item-info">A rectangular shape with rounded corners, aligned inside the frame of the view containing it.</p> 1660 1661</li> 1662 1663 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1664 <p> 1665 <a href="https://developer.apple.com/documentation/swiftui/scaledshape">ScaledShape</a> 1666 1667 1668 1669 <span class="os-list"> 1670 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1671 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1672 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1673 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1674 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1675 </span> 1676 </p> 1677 1678 <p class="item-info">A shape with a scale transform applied to it.</p> 1679 1680</li> 1681 1682 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1683 <p> 1684 <a href="https://developer.apple.com/documentation/swiftui/transformedshape">TransformedShape</a> 1685 1686 1687 1688 <span class="os-list"> 1689 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1690 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1691 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1692 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1693 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1694 </span> 1695 </p> 1696 1697 <p class="item-info">A shape with an affine transform applied to it.</p> 1698 1699</li> 1700 1701 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1702 <p> 1703 <a href="https://developer.apple.com/documentation/swiftui/unevenroundedrectangle">UnevenRoundedRectangle</a> 1704 1705 1706 1707 <span class="os-list"> 1708 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 1709 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 1710 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 1711 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 1712 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1713 </span> 1714 </p> 1715 1716 <p class="item-info">A rectangular shape with rounded corners with different values, aligned inside the frame of the view containing it.</p> 1717 1718</li> 1719 1720 </ul> 1721 </div> 1722 1723 <div class="section with-iOS with-macOS with-xrOS"> 1724 <h4>Tables</h4> 1725 1726 <ul> 1727 <li class="empty"></li> 1728 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 1729 <p> 1730 <a href="https://developer.apple.com/documentation/swiftui/table">Table</a> 1731 1732 1733 1734 <span class="os-list"> 1735 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 1736 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 1737 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1738 </span> 1739 </p> 1740 1741 <p class="item-info">A container that presents rows of data arranged in one or more columns, optionally providing the ability to select one or more members.</p> 1742 1743</li> 1744 1745 </ul> 1746 </div> 1747 1748 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 1749 <h4>Text Input and Output</h4> 1750 1751 <ul> 1752 <li class="empty"></li> 1753 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1754 <p> 1755 <a href="https://developer.apple.com/documentation/swiftui/label">Label</a> 1756 1757 1758 1759 <span class="os-list"> 1760 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 1761 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 1762 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 1763 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span>
1764 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1765 </span> 1766 </p> 1767 1768 <p class="item-info">A standard label for user interface items, consisting of an icon with a title.</p> 1769 1770</li> 1771 1772 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1773 <p> 1774 <a href="https://developer.apple.com/documentation/swiftui/securefield">SecureField</a> 1775 1776 1777 1778 <span class="os-list"> 1779 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1780 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1781 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1782 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1783 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1784 </span> 1785 </p> 1786 1787 <p class="item-info">A control into which the user securely enters private text.</p> 1788 1789</li> 1790 1791 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1792 <p> 1793 <a href="https://developer.apple.com/documentation/swiftui/text">Text</a> 1794 1795 1796 1797 <span class="os-list"> 1798 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1799 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1800 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1801 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1802 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1803 </span> 1804 </p> 1805 1806 <p class="item-info">A view that displays one or more lines of read-only text.</p> 1807 1808</li> 1809 1810 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 1811 <p> 1812 <a href="https://developer.apple.com/documentation/swiftui/texteditor">TextEditor</a> 1813 1814 1815 1816 <span class="os-list"> 1817 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 1818 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 1819 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1820 </span> 1821 </p> 1822 1823 <p class="item-info">A view that can display and edit long-form text.</p> 1824 1825</li> 1826 1827 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1828 <p> 1829 <a href="https://developer.apple.com/documentation/swiftui/textfield">TextField</a> 1830 1831 1832 1833 <span class="os-list"> 1834 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1835 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1836 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1837 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1838 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1839 </span> 1840 </p> 1841 1842 <p class="item-info">A control that displays an editable text interface.</p> 1843 1844</li> 1845 1846 </ul> 1847 </div> 1848 1849 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 1850 <h4>View Fundamentals</h4> 1851 1852 <ul> 1853 <li class="empty"></li> 1854 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1855 <p> 1856 <a href="https://developer.apple.com/documentation/swiftui/anyview">AnyView</a> 1857 1858 1859 1860 <span class="os-list"> 1861 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1862 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1863 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1864 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1865 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1866 </span> 1867 </p> 1868 1869 <p class="item-info">A type-erased view.</p> 1870 1871</li> 1872 1873 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1874 <p> 1875 <a href="https://developer.apple.com/documentation/swiftui/emptyview">EmptyView</a> 1876 1877 1878 1879 <span class="os-list"> 1880 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1881 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1882 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span>
1883 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1884 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1885 </span> 1886 </p> 1887 1888 <p class="item-info">A view that doesnât contain any content.</p> 1889 1890</li> 1891 1892 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1893 <p> 1894 <a href="https://developer.apple.com/documentation/swiftui/equatableview">EquatableView</a> 1895 1896 1897 1898 <span class="os-list"> 1899 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1900 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1901 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1902 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1903 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1904 </span> 1905 </p> 1906 1907 <p class="item-info">A view type that compares itself against its previous value and prevents its child updating if its new value is the same as its old value.</p> 1908 1909</li> 1910 1911 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1912 <p> 1913 <a href="https://developer.apple.com/documentation/swiftui/modifiedcontent">ModifiedContent</a> 1914 1915 1916 1917 <span class="os-list"> 1918 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1919 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1920 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1921 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1922 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1923 </span> 1924 </p> 1925 1926 <p class="item-info">A value with a modifier applied to it.</p> 1927 1928</li> 1929 1930 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1931 <p> 1932 <a href="https://developer.apple.com/documentation/swiftui/subscriptionview">SubscriptionView</a> 1933 1934 1935 1936 <span class="os-list"> 1937 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1938 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1939 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1940 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1941 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1942 </span> 1943 </p> 1944 1945 <p class="item-info">A view that subscribes to a publisher with an action.</p> 1946 1947</li> 1948 1949 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1950 <p> 1951 <a href="https://developer.apple.com/documentation/swiftui/tupleview">TupleView</a> 1952 1953 1954 1955 <span class="os-list"> 1956 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 1957 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 1958 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 1959 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 1960 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1961 </span> 1962 </p> 1963 1964 <p class="item-info">A View created from a swift tuple of View values.</p> 1965 1966</li> 1967 1968 </ul> 1969 </div> 1970 1971 <div class="section with-iOS with-macOS with-tvOS with-xrOS with-watchOS"> 1972 <h4>View Groupings</h4> 1973 1974 <ul> 1975 <li class="empty"></li> 1976 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 1977 <p> 1978 <a href="https://developer.apple.com/documentation/swiftui/controlgroup">ControlGroup</a> 1979 1980 1981 1982 <span class="os-list"> 1983 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 1984 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 1985 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 1986 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 1987 </span> 1988 </p> 1989 1990 <p class="item-info">A container view that displays semantically-related controls in a visually-appropriate manner for the context</p> 1991 1992</li> 1993 1994 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 1995 <p> 1996 <a href="https://developer.apple.com/documentation/swiftui/form">Form</a> 1997 1998 1999 2000 <span class="os-list">
2001 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 2002 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 2003 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 2004 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 2005 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2006 </span> 2007 </p> 2008 2009 <p class="item-info">A container for grouping controls used for data entry, such as in settings or inspectors.</p> 2010 2011</li> 2012 2013 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2014 <p> 2015 <a href="https://developer.apple.com/documentation/swiftui/group">Group</a> 2016 2017 2018 2019 <span class="os-list"> 2020 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 2021 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 2022 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 2023 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 2024 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2025 </span> 2026 </p> 2027 2028 <p class="item-info">A type that collects multiple instances of a content type â like views, scenes, or commands â into a single unit.</p> 2029 2030</li> 2031 2032 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 2033 <p> 2034 <a href="https://developer.apple.com/documentation/swiftui/groupbox">GroupBox</a> 2035 2036 2037 2038 <span class="os-list"> 2039 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2040 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 2041 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2042 </span> 2043 </p> 2044 2045 <p class="item-info">A stylized view, with an optional label, that visually collects a logical grouping of content.</p> 2046 2047</li> 2048 2049 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2050 <p> 2051 <a href="https://developer.apple.com/documentation/swiftui/labeledcontent">LabeledContent</a> 2052 2053 2054 2055 <span class="os-list"> 2056 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 2057 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 2058 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 2059 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 2060 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2061 </span> 2062 </p> 2063 2064 <p class="item-info">A container for attaching a label to a value-bearing view.</p> 2065 2066</li> 2067 2068 </ul> 2069 </div> 2070 2071 <div class="section with-iOS with-xrOS with-Catalyst with-watchOS with-tvOS with-macOS"> 2072 <h4>Integrating Other Frameworks</h4> 2073 2074 <ul> 2075 <li class="empty"></li> 2076 <li class="with-iOS with-iPadOS with-xrOS"> 2077 <p> 2078 <a href="https://developer.apple.com/documentation/passkit/addpasstowalletbutton">AddPassToWalletButton</a> 2079 2080 <span class="tag">PassKit</span> 2081 2082 2083 <span class="os-list"> 2084 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 2085 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2086 </span> 2087 </p> 2088 2089 2090</li> 2091 2092 <li class="with-iOS with-iPadOS with-xrOS"> 2093 <p> 2094 <a href="https://developer.apple.com/documentation/passkit/asyncshareablepassconfiguration">AsyncShareablePassConfiguration</a> 2095 2096 <span class="tag">PassKit</span> 2097 2098 2099 <span class="os-list"> 2100 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 2101 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2102 </span> 2103 </p> 2104 2105 2106</li> 2107 2108 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2109 <p> 2110 <a href="https://developer.apple.com/documentation/homekit/cameraview">CameraView</a> 2111 2112 <span class="tag">HomeKit</span> 2113 2114 2115 <span class="os-list"> 2116 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2117 <span class="tag Catalyst" data-version="16.2">Catalyst 16.2</span> 2118 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 2119 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span>
2120 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2121 </span> 2122 </p> 2123 2124 <p class="item-info">A SwiftUI view into which a video stream or an image snapshot is rendered.</p> 2125 2126</li> 2127 2128 <li class="with-xrOS"> 2129 <p> 2130 <a href="https://developer.apple.com/documentation/storekit/defaultsubscriptionstoremarketingcontent">DefaultSubscriptionStoreMarketingContent</a> 2131 2132 <span class="tag">StoreKit</span> 2133 2134 2135 <span class="os-list"> 2136 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2137 </span> 2138 </p> 2139 2140 <p class="item-info">A view that represents the default marketing content for an in-app subscription store.</p> 2141 2142</li> 2143 2144 <li class="with-tvOS"> 2145 <p> 2146 <a href="https://developer.apple.com/documentation/devicediscoveryui/devicepicker">DevicePicker</a> 2147 2148 <span class="tag">DeviceDiscoveryUI</span> 2149 2150 2151 <span class="os-list"> 2152 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 2153 </span> 2154 </p> 2155 2156 <p class="item-info">A SwiftUI view that displays other devices on the network, and creates an encrypted connection to a copy of your app running on that device.</p> 2157 2158</li> 2159 2160 <li class="with-macOS"> 2161 <p> 2162 <a href="https://developer.apple.com/documentation/localauthentication/localauthenticationview">LocalAuthenticationView</a> 2163 2164 <span class="tag">Local Authentication</span> 2165 2166 2167 <span class="os-list"> 2168 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 2169 </span> 2170 </p> 2171 2172 <p class="item-info">A SwiftUI view that displays an authentication interface.</p> 2173 2174</li> 2175 2176 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS"> 2177 <p> 2178 <a href="https://developer.apple.com/documentation/corelocationui/locationbutton">LocationButton</a> 2179 2180 <span class="tag">CoreLocationUI</span> 2181 2182 2183 <span class="os-list"> 2184 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 2185 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 2186 </span> 2187 </p> 2188 2189 <p class="item-info">A SwiftUI button that grants one-time location authorization.</p> 2190 2191</li> 2192 2193 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2194 <p> 2195 <a href="https://developer.apple.com/documentation/mapkit/map">Map</a> 2196 2197 <span class="tag">MapKit</span> 2198 2199 2200 <span class="os-list"> 2201 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2202 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2203 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 2204 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 2205 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2206 </span> 2207 </p> 2208 2209 <p class="item-info">A view that displays an embedded map interface.</p> 2210 2211</li> 2212 2213 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2214 <p> 2215 <a href="https://developer.apple.com/documentation/mapkit/mapcompass">MapCompass</a> 2216 2217 <span class="tag">MapKit</span> 2218 2219 2220 <span class="os-list"> 2221 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 2222 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2223 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 2224 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 2225 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2226 </span> 2227 </p> 2228 2229 <p class="item-info">A view that reflects the current orientation of the associated map.</p> 2230 2231</li> 2232 2233 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2234 <p> 2235 <a href="https://developer.apple.com/documentation/mapkit/mapcontentview">MapContentView</a> 2236 2237 <span class="tag">MapKit</span> 2238 2239 2240 <span class="os-list"> 2241 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 2242 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2243 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 2244 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span>
2245 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2246 </span> 2247 </p> 2248 2249 <p class="item-info">A view that contains content that displays on a map at a specific position, and that responds to specific interactions you specify.</p> 2250 2251</li> 2252 2253 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 2254 <p> 2255 <a href="https://developer.apple.com/documentation/mapkit/mappitchbutton">MapPitchButton</a> 2256 2257 <span class="tag">MapKit</span> 2258 2259 2260 <span class="os-list"> 2261 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 2262 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2263 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 2264 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2265 </span> 2266 </p> 2267 2268 <p class="item-info">A button that sets the pitch (viewing angle) of an associated map to a viewable angle if flat, or returns the map to flat if pitched.</p> 2269 2270</li> 2271 2272 <li class="with-macOS with-Catalyst"> 2273 <p> 2274 <a href="https://developer.apple.com/documentation/mapkit/mappitchslider">MapPitchSlider</a> 2275 2276 <span class="tag">MapKit</span> 2277 2278 2279 <span class="os-list"> 2280 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2281 <span class="tag Catalyst" data-version="17.0">Catalyst 17.0</span> 2282 </span> 2283 </p> 2284 2285 <p class="item-info">A slider control that allows a person to change the pitch of the map.</p> 2286 2287</li> 2288 2289 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 2290 <p> 2291 <a href="https://developer.apple.com/documentation/mapkit/mapscaleview">MapScaleView</a> 2292 2293 <span class="tag">MapKit</span> 2294 2295 2296 <span class="os-list"> 2297 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 2298 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2299 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 2300 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2301 </span> 2302 </p> 2303 2304 <p class="item-info">Displays a legend with distance information for the associated map.</p> 2305 2306</li> 2307 2308 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2309 <p> 2310 <a href="https://developer.apple.com/documentation/mapkit/mapuserlocationbutton">MapUserLocationButton</a> 2311 2312 <span class="tag">MapKit</span> 2313 2314 2315 <span class="os-list"> 2316 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 2317 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2318 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 2319 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 2320 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2321 </span> 2322 </p> 2323 2324 <p class="item-info">A button that sets the framing of the associated map to the user location.</p> 2325 2326</li> 2327 2328 <li class="with-macOS with-Catalyst"> 2329 <p> 2330 <a href="https://developer.apple.com/documentation/mapkit/mapzoomstepper">MapZoomStepper</a> 2331 2332 <span class="tag">MapKit</span> 2333 2334 2335 <span class="os-list"> 2336 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2337 <span class="tag Catalyst" data-version="17.0">Catalyst 17.0</span> 2338 </span> 2339 </p> 2340 2341 <p class="item-info">Buttons a person uses to adjust the zoom level of the map.</p> 2342 2343</li> 2344 2345 <li class="with-watchOS"> 2346 <p> 2347 <a href="https://developer.apple.com/documentation/watchkit/nowplayingview">NowPlayingView</a> 2348 2349 <span class="tag">WatchKit</span> 2350 2351 2352 <span class="os-list"> 2353 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 2354 </span> 2355 </p> 2356 2357 <p class="item-info">A view that displays the systemâs Now Playing interface so that the user can control audio.</p> 2358 2359</li> 2360 2361 <li class="with-iOS with-iPadOS with-xrOS"> 2362 <p> 2363 <a href="https://developer.apple.com/documentation/passkit/paylaterview">PayLaterView</a> 2364 2365 <span class="tag">PassKit</span> 2366 2367 2368 <span class="os-list"> 2369 <span class="tag iOS" data-version="17.0">iOS 17.0</span>
2370 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2371 </span> 2372 </p> 2373 2374 <p class="item-info">A view that displays the Apple Pay Later visual merchandising widget.</p> 2375 2376</li> 2377 2378 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 2379 <p> 2380 <a href="https://developer.apple.com/documentation/passkit/paywithapplepaybutton">PayWithApplePayButton</a> 2381 2382 <span class="tag">PassKit</span> 2383 2384 2385 <span class="os-list"> 2386 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 2387 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 2388 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 2389 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2390 </span> 2391 </p> 2392 2393 2394</li> 2395 2396 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 2397 <p> 2398 <a href="https://developer.apple.com/documentation/photokit/photospicker">PhotosPicker</a> 2399 2400 <span class="tag">PhotosUI</span> 2401 2402 2403 <span class="os-list"> 2404 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 2405 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 2406 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 2407 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2408 </span> 2409 </p> 2410 2411 <p class="item-info">A view that displays a Photos picker for choosing assets from the photo library.</p> 2412 2413</li> 2414 2415 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2416 <p> 2417 <a href="https://developer.apple.com/documentation/storekit/productview">ProductView</a> 2418 2419 <span class="tag">StoreKit</span> 2420 2421 2422 <span class="os-list"> 2423 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 2424 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2425 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 2426 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 2427 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2428 </span> 2429 </p> 2430 2431 <p class="item-info">A view that merchandises an individual in-app purchase product.</p> 2432 2433</li> 2434 2435 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2436 <p> 2437 <a href="https://developer.apple.com/documentation/scenekit/sceneview">SceneView</a> 2438 2439 <span class="tag">SceneKit</span> 2440 2441 2442 <span class="os-list"> 2443 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2444 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2445 <span class="tag Catalyst" data-version="14.2">Catalyst 14.2</span> 2446 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 2447 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 2448 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2449 </span> 2450 </p> 2451 2452 <p class="item-info">A SwiftUI view for displaying 3D SceneKit content.</p> 2453 2454</li> 2455 2456 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2457 <p> 2458 <a href="https://developer.apple.com/documentation/authenticationservices/signinwithapplebutton">SignInWithAppleButton</a> 2459 2460 <span class="tag">Authentication Services</span> 2461 2462 2463 <span class="os-list"> 2464 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2465 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2466 <span class="tag Catalyst" data-version="14.2">Catalyst 14.2</span> 2467 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 2468 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 2469 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2470 </span> 2471 </p> 2472 2473 <p class="item-info">The view that creates the Sign in with Apple button for display.</p> 2474 2475</li> 2476 2477 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2478 <p> 2479 <a href="https://developer.apple.com/documentation/spritekit/spriteview">SpriteView</a> 2480 2481 <span class="tag">SpriteKit</span> 2482 2483 2484 <span class="os-list">
2485 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2486 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2487 <span class="tag Catalyst" data-version="14.2">Catalyst 14.2</span> 2488 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 2489 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 2490 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2491 </span> 2492 </p> 2493 2494 <p class="item-info">A SwiftUI view that renders a SpriteKit scene.</p> 2495 2496</li> 2497 2498 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2499 <p> 2500 <a href="https://developer.apple.com/documentation/storekit/storeview">StoreView</a> 2501 2502 <span class="tag">StoreKit</span> 2503 2504 2505 <span class="os-list"> 2506 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 2507 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2508 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 2509 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 2510 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2511 </span> 2512 </p> 2513 2514 <p class="item-info">A view that merchandises a collection of in-app purchase products.</p> 2515 2516</li> 2517 2518 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2519 <p> 2520 <a href="https://developer.apple.com/documentation/storekit/subscriptionstoreview">SubscriptionStoreView</a> 2521 2522 <span class="tag">StoreKit</span> 2523 2524 2525 <span class="os-list"> 2526 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 2527 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 2528 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 2529 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 2530 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2531 </span> 2532 </p> 2533 2534 <p class="item-info">A view that merchandises a collection of auto-renewable subscription options in a subscription group.</p> 2535 2536</li> 2537 2538 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 2539 <p> 2540 <a href="https://developer.apple.com/documentation/passkit/verifyidentitywithwalletbutton">VerifyIdentityWithWalletButton</a> 2541 2542 <span class="tag">PassKit</span> 2543 2544 2545 <span class="os-list"> 2546 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 2547 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2548 </span> 2549 </p> 2550 2551 <p class="item-info">A view that displays a button for identity verification.</p> 2552 2553</li> 2554 2555 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2556 <p> 2557 <a href="https://developer.apple.com/documentation/avkit/videoplayer">VideoPlayer</a> 2558 2559 <span class="tag">AVKit</span> 2560 2561 2562 <span class="os-list"> 2563 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2564 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2565 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 2566 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 2567 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2568 </span> 2569 </p> 2570 2571 <p class="item-info">A view that displays content from a player and a native user interface to control playback.</p> 2572 2573</li> 2574 2575 </ul> 2576 </div> 2577 </div> 2578 <div class="section all-platforms"> 2579 <h3>Scenes</h3> 2580 2581 2582 2583 <div class="section with-iOS with-macOS with-xrOS with-watchOS with-tvOS"> 2584 2585 <ul> 2586 <li class="empty"></li> 2587 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 2588 <p> 2589 <a href="https://developer.apple.com/documentation/swiftui/documentgroup">DocumentGroup</a> 2590 2591 2592 2593 <span class="os-list"> 2594 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2595 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2596 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2597 </span> 2598 </p> 2599 2600 <p class="item-info">A scene that enables support for opening, creating, and saving documents.</p> 2601 2602</li> 2603 2604 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2605 <p> 2606 <a href="https://developer.apple.com/documentation/swiftui/group">Group</a> 2607 2608 2609 2610 <span class="os-list">
2611 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 2612 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 2613 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 2614 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 2615 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2616 </span> 2617 </p> 2618 2619 <p class="item-info">A type that collects multiple instances of a content type â like views, scenes, or commands â into a single unit.</p> 2620 2621</li> 2622 2623 <li class="with-xrOS"> 2624 <p> 2625 <a href="https://developer.apple.com/documentation/swiftui/immersivespace">ImmersiveSpace</a> 2626 2627 2628 2629 <span class="os-list"> 2630 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2631 </span> 2632 </p> 2633 2634 <p class="item-info">A scene that presents its content in an unbounded space.</p> 2635 2636</li> 2637 2638 <li class="with-macOS"> 2639 <p> 2640 <a href="https://developer.apple.com/documentation/swiftui/menubarextra">MenuBarExtra</a> 2641 2642 2643 2644 <span class="os-list"> 2645 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 2646 </span> 2647 </p> 2648 2649 <p class="item-info">A scene that renders itself as a persistent control in the system menu bar.</p> 2650 2651</li> 2652 2653 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2654 <p> 2655 <a href="https://developer.apple.com/documentation/swiftui/modifiedcontent">ModifiedContent</a> 2656 2657 2658 2659 <span class="os-list"> 2660 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 2661 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 2662 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 2663 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 2664 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2665 </span> 2666 </p> 2667 2668 <p class="item-info">A value with a modifier applied to it.</p> 2669 2670</li> 2671 2672 <li class="with-macOS"> 2673 <p> 2674 <a href="https://developer.apple.com/documentation/swiftui/settings">Settings</a> 2675 2676 2677 2678 <span class="os-list"> 2679 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2680 </span> 2681 </p> 2682 2683 <p class="item-info">A scene that presents an interface for viewing and modifying an appâs settings.</p> 2684 2685</li> 2686 2687 <li class="with-macOS"> 2688 <p> 2689 <a href="https://developer.apple.com/documentation/swiftui/window">Window</a> 2690 2691 2692 2693 <span class="os-list"> 2694 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 2695 </span> 2696 </p> 2697 2698 <p class="item-info">A scene that presents its content in a single, unique window.</p> 2699 2700</li> 2701 2702 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2703 <p> 2704 <a href="https://developer.apple.com/documentation/swiftui/windowgroup">WindowGroup</a> 2705 2706 2707 2708 <span class="os-list"> 2709 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2710 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2711 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 2712 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 2713 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2714 </span> 2715 </p> 2716 2717 <p class="item-info">A scene that presents a group of identically structured windows.</p> 2718 2719</li> 2720 2721 <li class="with-watchOS"> 2722 <p> 2723 <a href="https://developer.apple.com/documentation/swiftui/wknotificationscene">WKNotificationScene</a> 2724 2725 2726 2727 <span class="os-list"> 2728 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 2729 </span> 2730 </p> 2731 2732 <p class="item-info">A scene which appears in response to receiving the specified category of remote or local notifications.</p> 2733 2734</li> 2735 2736 </ul> 2737 </div> 2738 </div> 2739 <div class="section all-platforms"> 2740 <h3>Commands</h3> 2741 2742 2743 2744 <div class="section with-iOS with-macOS with-xrOS with-watchOS with-tvOS"> 2745 2746 <ul> 2747 <li class="empty"></li> 2748 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 2749 <p> 2750 <a href="https://developer.apple.com/documentation/swiftui/commandgroup">CommandGroup</a> 2751 2752 2753 2754 <span class="os-list">
2755 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2756 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2757 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2758 </span> 2759 </p> 2760 2761 <p class="item-info">Groups of controls that you can add to existing command menus.</p> 2762 2763</li> 2764 2765 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 2766 <p> 2767 <a href="https://developer.apple.com/documentation/swiftui/commandmenu">CommandMenu</a> 2768 2769 2770 2771 <span class="os-list"> 2772 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2773 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2774 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2775 </span> 2776 </p> 2777 2778 <p class="item-info">Command menus are stand-alone, top-level containers for controls that perform related, app-specific commands.</p> 2779 2780</li> 2781 2782 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 2783 <p> 2784 <a href="https://developer.apple.com/documentation/swiftui/emptycommands">EmptyCommands</a> 2785 2786 2787 2788 <span class="os-list"> 2789 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2790 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2791 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2792 </span> 2793 </p> 2794 2795 <p class="item-info">An empty group of commands.</p> 2796 2797</li> 2798 2799 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2800 <p> 2801 <a href="https://developer.apple.com/documentation/swiftui/group">Group</a> 2802 2803 2804 2805 <span class="os-list"> 2806 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 2807 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 2808 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 2809 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 2810 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2811 </span> 2812 </p> 2813 2814 <p class="item-info">A type that collects multiple instances of a content type â like views, scenes, or commands â into a single unit.</p> 2815 2816</li> 2817 2818 <li class="with-macOS"> 2819 <p> 2820 <a href="https://developer.apple.com/documentation/swiftui/importfromdevicescommands">ImportFromDevicesCommands</a> 2821 2822 2823 2824 <span class="os-list"> 2825 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 2826 </span> 2827 </p> 2828 2829 <p class="item-info">A built-in set of commands that enables importing content from nearby devices.</p> 2830 2831</li> 2832 2833 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 2834 <p> 2835 <a href="https://developer.apple.com/documentation/swiftui/sidebarcommands">SidebarCommands</a> 2836 2837 2838 2839 <span class="os-list"> 2840 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2841 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2842 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2843 </span> 2844 </p> 2845 2846 <p class="item-info">A built-in set of commands for manipulating window sidebars.</p> 2847 2848</li> 2849 2850 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 2851 <p> 2852 <a href="https://developer.apple.com/documentation/swiftui/texteditingcommands">TextEditingCommands</a> 2853 2854 2855 2856 <span class="os-list"> 2857 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2858 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2859 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2860 </span> 2861 </p> 2862 2863 <p class="item-info">A built-in group of commands for searching, editing, and transforming selections of text.</p> 2864 2865</li> 2866 2867 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 2868 <p> 2869 <a href="https://developer.apple.com/documentation/swiftui/textformattingcommands">TextFormattingCommands</a> 2870 2871 2872 2873 <span class="os-list"> 2874 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2875 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2876 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2877 </span> 2878 </p> 2879 2880 <p class="item-info">A built-in set of commands for transforming the styles applied to selections of text.</p> 2881 2882</li> 2883 2884 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 2885 <p> 2886 <a href="https://developer.apple.com/documentation/swiftui/toolbarcommands">ToolbarCommands</a> 2887 2888 2889 2890 <span class="os-list">
2891 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 2892 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 2893 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2894 </span> 2895 </p> 2896 2897 <p class="item-info">A built-in set of commands for manipulating window toolbars.</p> 2898 2899</li> 2900 2901 </ul> 2902 </div> 2903 </div> 2904 <div class="section all-platforms"> 2905 <h3>Classes</h3> 2906 2907 2908 2909 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 2910 2911 <ul> 2912 <li class="empty"></li> 2913 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 2914 <p> 2915 <a href="https://developer.apple.com/documentation/swiftui/imagerenderer">ImageRenderer</a> 2916 2917 2918 2919 <span class="os-list"> 2920 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 2921 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 2922 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 2923 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 2924 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2925 </span> 2926 </p> 2927 2928 <p class="item-info">An object that creates images from SwiftUI views.</p> 2929 2930</li> 2931 2932 <li class="with-macOS"> 2933 <p> 2934 <a href="https://developer.apple.com/documentation/swiftui/nshostingcontroller">NSHostingController</a> 2935 2936 2937 2938 <span class="os-list"> 2939 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 2940 </span> 2941 </p> 2942 2943 <p class="item-info">An AppKit view controller that hosts SwiftUI view hierarchy.</p> 2944 2945</li> 2946 2947 <li class="with-macOS"> 2948 <p> 2949 <a href="https://developer.apple.com/documentation/swiftui/nshostingview">NSHostingView</a> 2950 2951 2952 2953 <span class="os-list"> 2954 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 2955 </span> 2956 </p> 2957 2958 <p class="item-info">An AppKit view that hosts a SwiftUI view hierarchy.</p> 2959 2960</li> 2961 2962 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 2963 <p> 2964 <a href="https://developer.apple.com/documentation/swiftui/uihostingcontroller">UIHostingController</a> 2965 2966 2967 2968 <span class="os-list"> 2969 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 2970 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 2971 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2972 </span> 2973 </p> 2974 2975 <p class="item-info">A UIKit view controller that manages a SwiftUI view hierarchy.</p> 2976 2977</li> 2978 2979 <li class="with-xrOS"> 2980 <p> 2981 <a href="https://developer.apple.com/documentation/swiftui/uihostingornament">UIHostingOrnament</a> 2982 2983 2984 2985 <span class="os-list"> 2986 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 2987 </span> 2988 </p> 2989 2990 <p class="item-info">A model that represents an ornament suitable for being hosted in UIKit.</p> 2991 2992</li> 2993 2994 <li class="with-xrOS"> 2995 <p> 2996 <a href="https://developer.apple.com/documentation/swiftui/uiornament">UIOrnament</a> 2997 2998 2999 3000 <span class="os-list"> 3001 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3002 </span> 3003 </p> 3004 3005 <p class="item-info">The abstract base class that represents an ornament. You donât create an instance of this class directly. Instead use UIHostingOrnament.</p> 3006 3007</li> 3008 3009 <li class="with-xrOS"> 3010 <p> 3011 <a href="https://developer.apple.com/documentation/realitykit/viewattachmententity">ViewAttachmentEntity</a> 3012 3013 <span class="tag">RealityKit</span> 3014 3015 3016 <span class="os-list"> 3017 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3018 </span> 3019 </p> 3020 3021 <p class="item-info">An entity that has a view attachment.</p> 3022 3023</li> 3024 3025 <li class="with-watchOS"> 3026 <p> 3027 <a href="https://developer.apple.com/documentation/swiftui/wkhostingcontroller">WKHostingController</a> 3028 3029 3030 3031 <span class="os-list"> 3032 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 3033 </span> 3034 </p> 3035 3036 <p class="item-info">A WatchKit interface controller that hosts a SwiftUI view hierarchy.</p> 3037 3038</li> 3039 3040 <li class="with-watchOS"> 3041 <p> 3042 <a href="https://developer.apple.com/documentation/swiftui/wkusernotificationhostingcontroller">WKUserNotificationHostingController</a> 3043 3044 3045 3046 <span class="os-list">
3047 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 3048 </span> 3049 </p> 3050 3051 <p class="item-info">A WatchKit user notification interface controller that hosts a SwiftUI view hierarchy.</p> 3052 3053</li> 3054 3055 </ul> 3056 </div> 3057 </div> 3058 <div class="section all-platforms"> 3059 <h3>View Modifiers</h3> 3060 3061 3062 3063 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 3064 <h4>Accessibility Modifiers</h4> 3065 3066 <ul> 3067 <li class="empty"></li> 3068 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3069 <p> 3070 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityaction(_:_:)">.accessibilityAction()</a> 3071 3072 3073 3074 <span class="os-list"> 3075 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 3076 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 3077 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 3078 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 3079 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3080 </span> 3081 </p> 3082 3083 <p class="item-info">Adds an accessibility action to the view. Actions allow assistive technologies, such as the VoiceOver, to interact with the view by invoking the action.</p> 3084 3085</li> 3086 3087 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3088 <p> 3089 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityactions(_:)">.accessibilityActions()</a> 3090 3091 3092 3093 <span class="os-list"> 3094 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 3095 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 3096 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 3097 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 3098 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3099 </span> 3100 </p> 3101 3102 <p class="item-info">Adds multiple accessibility actions to the view.</p> 3103 3104</li> 3105 3106 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3107 <p> 3108 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityactivationpoint(_:)-10po1">.accessibilityActivationPoint()</a> 3109 3110 3111 3112 <span class="os-list"> 3113 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3114 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3115 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3116 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3117 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3118 </span> 3119 </p> 3120 3121 <p class="item-info">The activation point for an element is the location assistive technologies use to initiate gestures.</p> 3122 3123</li> 3124 3125 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3126 <p> 3127 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityaddtraits(_:)">.accessibilityAddTraits()</a> 3128 3129 3130 3131 <span class="os-list"> 3132 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3133 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3134 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3135 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3136 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3137 </span> 3138 </p> 3139 3140 <p class="item-info">Adds the given traits to the view.</p> 3141 3142</li> 3143 3144 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3145 <p> 3146 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityadjustableaction(_:)">.accessibilityAdjustableAction()</a> 3147 3148 3149 3150 <span class="os-list"> 3151 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 3152 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 3153 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 3154 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span>
3155 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3156 </span> 3157 </p> 3158 3159 <p class="item-info">Adds an accessibility adjustable action to the view. Actions allow assistive technologies, such as the VoiceOver, to interact with the view by invoking the action.</p> 3160 3161</li> 3162 3163 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3164 <p> 3165 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilitychartdescriptor(_:)">.accessibilityChartDescriptor()</a> 3166 3167 3168 3169 <span class="os-list"> 3170 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3171 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3172 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3173 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3174 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3175 </span> 3176 </p> 3177 3178 <p class="item-info">Adds a descriptor to a View that represents a chart to make the chartâs contents accessible to all users.</p> 3179 3180</li> 3181 3182 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3183 <p> 3184 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilitychildren(children:)">.accessibilityChildren()</a> 3185 3186 3187 3188 <span class="os-list"> 3189 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3190 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3191 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3192 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3193 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3194 </span> 3195 </p> 3196 3197 <p class="item-info">Replaces the existing accessibility elementâs children with one or more new synthetic accessibility elements.</p> 3198 3199</li> 3200 3201 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3202 <p> 3203 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilitycustomcontent(_:_:importance:)-90n8p">.accessibilityCustomContent()</a> 3204 3205 3206 3207 <span class="os-list"> 3208 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3209 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3210 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3211 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3212 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3213 </span> 3214 </p> 3215 3216 <p class="item-info">Add additional accessibility information to the view.</p> 3217 3218</li> 3219 3220 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3221 <p> 3222 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilitydirecttouch(_:options:)">.accessibilityDirectTouch()</a> 3223 3224 3225 3226 <span class="os-list"> 3227 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 3228 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 3229 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 3230 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 3231 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3232 </span> 3233 </p> 3234 3235 <p class="item-info">Explicitly set whether this accessibility element is a direct touch area. Direct touch areas passthrough touch events to the app rather than being handled through an assistive technology, such as VoiceOver. The modifier accepts an optional AccessibilityDirectTouchOptions option set to customize the functionality of the direct touch area.</p> 3236 3237</li> 3238 3239 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3240 <p> 3241 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityelement(children:)">.accessibilityElement()</a> 3242 3243 3244 3245 <span class="os-list"> 3246 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 3247 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 3248 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span>
3249 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 3250 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3251 </span> 3252 </p> 3253 3254 <p class="item-info">Creates a new accessibility element, or modifies the AccessibilityChildBehavior of the existing accessibility element.</p> 3255 3256</li> 3257 3258 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3259 <p> 3260 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityfocused(_:)">.accessibilityFocused()</a> 3261 3262 3263 3264 <span class="os-list"> 3265 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3266 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3267 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3268 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3269 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3270 </span> 3271 </p> 3272 3273 <p class="item-info">Modifies this view by binding its accessibility elementâs focus state to the given boolean state value.</p> 3274 3275</li> 3276 3277 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3278 <p> 3279 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityheading(_:)">.accessibilityHeading()</a> 3280 3281 3282 3283 <span class="os-list"> 3284 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3285 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3286 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3287 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3288 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3289 </span> 3290 </p> 3291 3292 <p class="item-info">Sets the accessibility level of this heading.</p> 3293 3294</li> 3295 3296 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3297 <p> 3298 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityhidden(_:)">.accessibilityHidden()</a> 3299 3300 3301 3302 <span class="os-list"> 3303 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3304 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3305 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3306 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3307 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3308 </span> 3309 </p> 3310 3311 <p class="item-info">Specifies whether to hide this view from system accessibility features.</p> 3312 3313</li> 3314 3315 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3316 <p> 3317 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityhint(_:)-3rdgs">.accessibilityHint()</a> 3318 3319 3320 3321 <span class="os-list"> 3322 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3323 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3324 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3325 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3326 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3327 </span> 3328 </p> 3329 3330 <p class="item-info">Communicates to the user what happens after performing the viewâs action.</p> 3331 3332</li> 3333 3334 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3335 <p> 3336 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityidentifier(_:)">.accessibilityIdentifier()</a> 3337 3338 3339 3340 <span class="os-list"> 3341 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3342 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3343 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3344 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3345 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3346 </span> 3347 </p> 3348 3349 <p class="item-info">Uses the string you specify to identify the view.</p> 3350 3351</li> 3352 3353 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3354 <p> 3355 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityignoresinvertcolors(_:)">.accessibilityIgnoresInvertColors()</a> 3356 3357 3358 3359 <span class="os-list">
3360 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3361 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3362 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3363 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3364 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3365 </span> 3366 </p> 3367 3368 <p class="item-info">Sets whether this view should ignore the system Smart Invert setting.</p> 3369 3370</li> 3371 3372 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3373 <p> 3374 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityinputlabels(_:)-9q3yf">.accessibilityInputLabels()</a> 3375 3376 3377 3378 <span class="os-list"> 3379 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3380 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3381 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3382 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3383 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3384 </span> 3385 </p> 3386 3387 <p class="item-info">Sets alternate input labels with which users identify a view.</p> 3388 3389</li> 3390 3391 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3392 <p> 3393 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilitylabel(_:)-5f0zj">.accessibilityLabel()</a> 3394 3395 3396 3397 <span class="os-list"> 3398 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3399 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3400 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3401 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3402 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3403 </span> 3404 </p> 3405 3406 <p class="item-info">Adds a label to the view that describes its contents.</p> 3407 3408</li> 3409 3410 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3411 <p> 3412 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilitylabeledpair(role:id:in:)">.accessibilityLabeledPair()</a> 3413 3414 3415 3416 <span class="os-list"> 3417 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3418 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3419 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3420 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3421 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3422 </span> 3423 </p> 3424 3425 <p class="item-info">Pairs an accessibility element representing a label with the element for the matching content.</p> 3426 3427</li> 3428 3429 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3430 <p> 3431 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilitylinkedgroup(id:in:)">.accessibilityLinkedGroup()</a> 3432 3433 3434 3435 <span class="os-list"> 3436 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3437 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3438 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3439 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3440 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3441 </span> 3442 </p> 3443 3444 <p class="item-info">Links multiple accessibility elements so that the user can quickly navigate from one element to another, even when the elements are not near each other in the accessibility hierarchy.</p> 3445 3446</li> 3447 3448 <li class="with-watchOS"> 3449 <p> 3450 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityquickaction(style:content:)">.accessibilityQuickAction()</a> 3451 3452 3453 3454 <span class="os-list"> 3455 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 3456 </span> 3457 </p> 3458 3459 <p class="item-info">Adds a quick action to be shown by the system when active.</p> 3460 3461</li> 3462 3463 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3464 <p> 3465 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityremovetraits(_:)">.accessibilityRemoveTraits()</a> 3466 3467 3468 3469 <span class="os-list">
3470 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3471 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3472 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3473 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3474 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3475 </span> 3476 </p> 3477 3478 <p class="item-info">Removes the given traits from this view.</p> 3479 3480</li> 3481 3482 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3483 <p> 3484 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityrepresentation(representation:)">.accessibilityRepresentation()</a> 3485 3486 3487 3488 <span class="os-list"> 3489 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3490 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3491 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3492 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3493 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3494 </span> 3495 </p> 3496 3497 <p class="item-info">Replaces one or more accessibility elements for this view with new accessibility elements.</p> 3498 3499</li> 3500 3501 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3502 <p> 3503 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityrespondstouserinteraction(_:)">.accessibilityRespondsToUserInteraction()</a> 3504 3505 3506 3507 <span class="os-list"> 3508 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3509 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3510 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3511 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3512 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3513 </span> 3514 </p> 3515 3516 <p class="item-info">Explicitly set whether this Accessibility element responds to user interaction and would thus be interacted with by technologies such as Switch Control, Voice Control or Full Keyboard Access.</p> 3517 3518</li> 3519 3520 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3521 <p> 3522 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityrotor(_:entries:)-1g128">.accessibilityRotor()</a> 3523 3524 3525 3526 <span class="os-list"> 3527 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3528 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3529 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3530 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3531 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3532 </span> 3533 </p> 3534 3535 <p class="item-info">Create an Accessibility Rotor replacing the specified system-provided Rotor.</p> 3536 3537</li> 3538 3539 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3540 <p> 3541 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityrotorentry(id:in:)">.accessibilityRotorEntry()</a> 3542 3543 3544 3545 <span class="os-list"> 3546 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3547 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3548 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3549 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3550 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3551 </span> 3552 </p> 3553 3554 <p class="item-info">Defines an explicit identifier tying an Accessibility element for this view to an entry in an Accessibility Rotor.</p> 3555 3556</li> 3557 3558 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3559 <p> 3560 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityscrollaction(_:)">.accessibilityScrollAction()</a> 3561 3562 3563 3564 <span class="os-list"> 3565 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 3566 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 3567 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span>
3568 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 3569 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3570 </span> 3571 </p> 3572 3573 <p class="item-info">Adds an accessibility scroll action to the view. Actions allow assistive technologies, such as the VoiceOver, to interact with the view by invoking the action.</p> 3574 3575</li> 3576 3577 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3578 <p> 3579 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityshowslargecontentviewer()">.accessibilityShowsLargeContentViewer()</a> 3580 3581 3582 3583 <span class="os-list"> 3584 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3585 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3586 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3587 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3588 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3589 </span> 3590 </p> 3591 3592 <p class="item-info">Adds a default large content view to be shown by the large content viewer.</p> 3593 3594</li> 3595 3596 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3597 <p> 3598 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilitysortpriority(_:)">.accessibilitySortPriority()</a> 3599 3600 3601 3602 <span class="os-list"> 3603 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3604 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3605 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3606 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3607 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3608 </span> 3609 </p> 3610 3611 <p class="item-info">Sets the sort priority order for this viewâs accessibility element, relative to other elements at the same level.</p> 3612 3613</li> 3614 3615 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3616 <p> 3617 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilitytextcontenttype(_:)">.accessibilityTextContentType()</a> 3618 3619 3620 3621 <span class="os-list"> 3622 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3623 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3624 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3625 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3626 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3627 </span> 3628 </p> 3629 3630 <p class="item-info">Sets an accessibility text content type.</p> 3631 3632</li> 3633 3634 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3635 <p> 3636 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityvalue(_:)-z9mo">.accessibilityValue()</a> 3637 3638 3639 3640 <span class="os-list"> 3641 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 3642 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 3643 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 3644 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 3645 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3646 </span> 3647 </p> 3648 3649 <p class="item-info">Adds a textual description of the value that the view contains.</p> 3650 3651</li> 3652 3653 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3654 <p> 3655 <a href="https://developer.apple.com/documentation/swiftui/view/accessibilityzoomaction(_:)">.accessibilityZoomAction()</a> 3656 3657 3658 3659 <span class="os-list"> 3660 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 3661 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 3662 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 3663 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 3664 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3665 </span> 3666 </p> 3667 3668 <p class="item-info">Adds an accessibility zoom action to the view. Actions allow assistive technologies, such as VoiceOver, to interact with the view by invoking the action.</p> 3669 3670</li> 3671 3672 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3673 <p> 3674 <a href="https://developer.apple.com/documentation/swiftui/view/speechadjustedpitch(_:)">.speechAdjustedPitch()</a> 3675 3676 3677 3678 <span class="os-list">
3679 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3680 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3681 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3682 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3683 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3684 </span> 3685 </p> 3686 3687 <p class="item-info">Raises or lowers the pitch of spoken text.</p> 3688 3689</li> 3690 3691 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3692 <p> 3693 <a href="https://developer.apple.com/documentation/swiftui/view/speechalwaysincludespunctuation(_:)">.speechAlwaysIncludesPunctuation()</a> 3694 3695 3696 3697 <span class="os-list"> 3698 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3699 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3700 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3701 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3702 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3703 </span> 3704 </p> 3705 3706 <p class="item-info">Sets whether VoiceOver should always speak all punctuation in the text view.</p> 3707 3708</li> 3709 3710 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3711 <p> 3712 <a href="https://developer.apple.com/documentation/swiftui/view/speechannouncementsqueued(_:)">.speechAnnouncementsQueued()</a> 3713 3714 3715 3716 <span class="os-list"> 3717 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3718 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3719 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3720 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3721 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3722 </span> 3723 </p> 3724 3725 <p class="item-info">Controls whether to queue pending announcements behind existing speech rather than interrupting speech in progress.</p> 3726 3727</li> 3728 3729 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3730 <p> 3731 <a href="https://developer.apple.com/documentation/swiftui/view/speechspellsoutcharacters(_:)">.speechSpellsOutCharacters()</a> 3732 3733 3734 3735 <span class="os-list"> 3736 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3737 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3738 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3739 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3740 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3741 </span> 3742 </p> 3743 3744 <p class="item-info">Sets whether VoiceOver should speak the contents of the text view character by character.</p> 3745 3746</li> 3747 3748 </ul> 3749 </div> 3750 3751 <div class="section with-iOS with-macOS with-tvOS with-xrOS with-watchOS"> 3752 <h4>Appearance Modifiers</h4> 3753 3754 <ul> 3755 <li class="empty"></li> 3756 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 3757 <p> 3758 <a href="https://developer.apple.com/documentation/swiftui/view/alloweddynamicrange(_:)">.allowedDynamicRange()</a> 3759 3760 3761 3762 <span class="os-list"> 3763 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 3764 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 3765 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 3766 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3767 </span> 3768 </p> 3769 3770 <p class="item-info">Returns a new view configured with the specified allowed dynamic range.</p> 3771 3772</li> 3773 3774 <li class="with-macOS"> 3775 <p> 3776 <a href="https://developer.apple.com/documentation/swiftui/view/alternatingrowbackgrounds(_:)">.alternatingRowBackgrounds()</a> 3777 3778 3779 3780 <span class="os-list"> 3781 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 3782 </span> 3783 </p> 3784 3785 <p class="item-info">Overrides whether lists and tables in this view have alternating row backgrounds.</p> 3786 3787</li> 3788 3789 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3790 <p> 3791 <a href="https://developer.apple.com/documentation/swiftui/view/background(ignoressafeareaedges:)">.background()</a> 3792 3793 3794 3795 <span class="os-list">
3796 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 3797 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 3798 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 3799 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 3800 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3801 </span> 3802 </p> 3803 3804 <p class="item-info">Sets the viewâs background to the default background style.</p> 3805 3806</li> 3807 3808 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3809 <p> 3810 <a href="https://developer.apple.com/documentation/swiftui/view/backgroundstyle(_:)">.backgroundStyle()</a> 3811 3812 3813 3814 <span class="os-list"> 3815 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 3816 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 3817 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 3818 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 3819 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3820 </span> 3821 </p> 3822 3823 <p class="item-info">Sets the specified style to render backgrounds within the view.</p> 3824 3825</li> 3826 3827 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3828 <p> 3829 <a href="https://developer.apple.com/documentation/swiftui/view/border(_:width:)">.border()</a> 3830 3831 3832 3833 <span class="os-list"> 3834 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 3835 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 3836 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 3837 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 3838 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3839 </span> 3840 </p> 3841 3842 <p class="item-info">Adds a border to this view with the specified style and width.</p> 3843 3844</li> 3845 3846 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3847 <p> 3848 <a href="https://developer.apple.com/documentation/swiftui/view/buttonbordershape(_:)">.buttonBorderShape()</a> 3849 3850 3851 3852 <span class="os-list"> 3853 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3854 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3855 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3856 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3857 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3858 </span> 3859 </p> 3860 3861 <p class="item-info">Sets the border shape for buttons in this view.</p> 3862 3863</li> 3864 3865 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3866 <p> 3867 <a href="https://developer.apple.com/documentation/swiftui/view/buttonrepeatbehavior(_:)">.buttonRepeatBehavior()</a> 3868 3869 3870 3871 <span class="os-list"> 3872 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 3873 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 3874 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 3875 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 3876 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3877 </span> 3878 </p> 3879 3880 <p class="item-info">Sets whether buttons in this view should repeatedly trigger their actions on prolonged interactions.</p> 3881 3882</li> 3883 3884 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3885 <p> 3886 <a href="https://developer.apple.com/documentation/swiftui/view/containerbackground(_:for:)">.containerBackground()</a> 3887 3888 3889 3890 <span class="os-list"> 3891 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 3892 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 3893 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 3894 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 3895 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3896 </span> 3897 </p> 3898 3899 <p class="item-info">Sets the container background of the enclosing container using a view.</p> 3900 3901</li> 3902 3903 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 3904 <p> 3905 <a href="https://developer.apple.com/documentation/swiftui/view/control
3905size(_:)">.controlSize()</a> 3906 3907 3908 3909 <span class="os-list"> 3910 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3911 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 3912 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 3913 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3914 </span> 3915 </p> 3916 3917 <p class="item-info">Sets the size for controls within this view.</p> 3918 3919</li> 3920 3921 <li class="with-watchOS with-xrOS"> 3922 <p> 3923 <a href="https://developer.apple.com/documentation/swiftui/view/defaultwheelpickeritemheight(_:)">.defaultWheelPickerItemHeight()</a> 3924 3925 3926 3927 <span class="os-list"> 3928 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 3929 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3930 </span> 3931 </p> 3932 3933 <p class="item-info">Sets the default wheel-style picker item height.</p> 3934 3935</li> 3936 3937 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3938 <p> 3939 <a href="https://developer.apple.com/documentation/swiftui/view/foregroundstyle(_:)">.foregroundStyle()</a> 3940 3941 3942 3943 <span class="os-list"> 3944 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3945 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3946 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3947 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3948 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3949 </span> 3950 </p> 3951 3952 <p class="item-info">Sets a viewâs foreground elements to use a given style.</p> 3953 3954</li> 3955 3956 <li class="with-xrOS"> 3957 <p> 3958 <a href="https://developer.apple.com/documentation/swiftui/view/glassbackgroundeffect(displaymode:)">.glassBackgroundEffect()</a> 3959 3960 3961 3962 <span class="os-list"> 3963 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3964 </span> 3965 </p> 3966 3967 <p class="item-info">Sets the viewâs glass background to displayMode, filling the viewâs container relative rounded corner shape.</p> 3968 3969</li> 3970 3971 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3972 <p> 3973 <a href="https://developer.apple.com/documentation/swiftui/view/headerprominence(_:)">.headerProminence()</a> 3974 3975 3976 3977 <span class="os-list"> 3978 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 3979 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 3980 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 3981 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 3982 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 3983 </span> 3984 </p> 3985 3986 <p class="item-info">Sets the header prominence for this view.</p> 3987 3988</li> 3989 3990 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 3991 <p> 3992 <a href="https://developer.apple.com/documentation/swiftui/view/hidden()">.hidden()</a> 3993 3994 3995 3996 <span class="os-list"> 3997 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 3998 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 3999 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 4000 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 4001 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4002 </span> 4003 </p> 4004 4005 <p class="item-info">Hides this view unconditionally.</p> 4006 4007</li> 4008 4009 <li class="with-macOS"> 4010 <p> 4011 <a href="https://developer.apple.com/documentation/swiftui/view/horizontalradiogrouplayout()">.horizontalRadioGroupLayout()</a> 4012 4013 4014 4015 <span class="os-list"> 4016 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 4017 </span> 4018 </p> 4019 4020 <p class="item-info">Sets the style for radio group style pickers within this view to be horizontally positioned with the radio buttons inside the layout.</p> 4021 4022</li> 4023 4024 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4025 <p> 4026 <a href="https://developer.apple.com/documentation/swiftui/view/invalidatablecontent(_:)">.invalidatableContent()</a> 4027 4028 4029 4030 <span class="os-list">
4031 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4032 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4033 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 4034 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 4035 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4036 </span> 4037 </p> 4038 4039 <p class="item-info">Mark the receiver as their content might be invalidated.</p> 4040 4041</li> 4042 4043 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4044 <p> 4045 <a href="https://developer.apple.com/documentation/swiftui/view/labelshidden()">.labelsHidden()</a> 4046 4047 4048 4049 <span class="os-list"> 4050 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 4051 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 4052 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 4053 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 4054 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4055 </span> 4056 </p> 4057 4058 <p class="item-info">Hides the labels of any controls contained within this view.</p> 4059 4060</li> 4061 4062 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4063 <p> 4064 <a href="https://developer.apple.com/documentation/swiftui/view/listitemtint(_:)-12mbh">.listItemTint()</a> 4065 4066 4067 4068 <span class="os-list"> 4069 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 4070 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 4071 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 4072 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 4073 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4074 </span> 4075 </p> 4076 4077 <p class="item-info">Sets the tint effect associated with specific content in a list.</p> 4078 4079</li> 4080 4081 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4082 <p> 4083 <a href="https://developer.apple.com/documentation/swiftui/view/listrowbackground(_:)">.listRowBackground()</a> 4084 4085 4086 4087 <span class="os-list"> 4088 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 4089 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 4090 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 4091 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 4092 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4093 </span> 4094 </p> 4095 4096 <p class="item-info">Places a custom background view behind a list row item.</p> 4097 4098</li> 4099 4100 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 4101 <p> 4102 <a href="https://developer.apple.com/documentation/swiftui/view/listrowseparator(_:edges:)">.listRowSeparator()</a> 4103 4104 4105 4106 <span class="os-list"> 4107 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 4108 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4109 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4110 </span> 4111 </p> 4112 4113 <p class="item-info">Sets the display mode for the separator associated with this specific row.</p> 4114 4115</li> 4116 4117 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 4118 <p> 4119 <a href="https://developer.apple.com/documentation/swiftui/view/listrowseparatortint(_:edges:)">.listRowSeparatorTint()</a> 4120 4121 4122 4123 <span class="os-list"> 4124 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 4125 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4126 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4127 </span> 4128 </p> 4129 4130 <p class="item-info">Sets the tint color associated with a row.</p> 4131 4132</li> 4133 4134 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 4135 <p> 4136 <a href="https://developer.apple.com/documentation/swiftui/view/listsectionseparator(_:edges:)">.listSectionSeparator()</a> 4137 4138 4139 4140 <span class="os-list"> 4141 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 4142 <span class="tag macOS" data-version="13.0">macOS 13.0</span>
4143 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4144 </span> 4145 </p> 4146 4147 <p class="item-info">Sets whether to hide the separator associated with a list section.</p> 4148 4149</li> 4150 4151 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 4152 <p> 4153 <a href="https://developer.apple.com/documentation/swiftui/view/listsectionseparatortint(_:edges:)">.listSectionSeparatorTint()</a> 4154 4155 4156 4157 <span class="os-list"> 4158 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 4159 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4160 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4161 </span> 4162 </p> 4163 4164 <p class="item-info">Sets the tint color associated with a section.</p> 4165 4166</li> 4167 4168 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4169 <p> 4170 <a href="https://developer.apple.com/documentation/swiftui/view/menuactiondismissbehavior(_:)">.menuActionDismissBehavior()</a> 4171 4172 4173 4174 <span class="os-list"> 4175 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 4176 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 4177 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 4178 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 4179 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4180 </span> 4181 </p> 4182 4183 <p class="item-info">Tells a menu whether to dismiss after performing an action.</p> 4184 4185</li> 4186 4187 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 4188 <p> 4189 <a href="https://developer.apple.com/documentation/swiftui/view/menuindicator(_:)">.menuIndicator()</a> 4190 4191 4192 4193 <span class="os-list"> 4194 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 4195 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 4196 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 4197 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4198 </span> 4199 </p> 4200 4201 <p class="item-info">Sets the menu indicator visibility for controls within this view.</p> 4202 4203</li> 4204 4205 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4206 <p> 4207 <a href="https://developer.apple.com/documentation/swiftui/view/menuorder(_:)">.menuOrder()</a> 4208 4209 4210 4211 <span class="os-list"> 4212 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4213 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4214 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4215 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4216 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4217 </span> 4218 </p> 4219 4220 <p class="item-info">Sets the preferred order of items for menus presented from this view.</p> 4221 4222</li> 4223 4224 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4225 <p> 4226 <a href="https://developer.apple.com/documentation/swiftui/view/overlay(alignment:content:)">.overlay()</a> 4227 4228 4229 4230 <span class="os-list"> 4231 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 4232 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 4233 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 4234 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 4235 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4236 </span> 4237 </p> 4238 4239 <p class="item-info">Layers the views that you specify in front of this view.</p> 4240 4241</li> 4242 4243 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 4244 <p> 4245 <a href="https://developer.apple.com/documentation/swiftui/view/paletteselectioneffect(_:)">.paletteSelectionEffect()</a> 4246 4247 4248 4249 <span class="os-list"> 4250 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4251 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4252 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4253 </span> 4254 </p> 4255 4256 <p class="item-info">Specifies the selection effect to apply to a palette item.</p> 4257 4258</li> 4259 4260 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4261 <p> 4262 <a href="https://developer.apple.com/documentation/swiftui/view/persistentsystemoverlays(_:)">.persistentSystemOverlays()</a> 4263 4264 4265 4266 <span class="os-list">
4267 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4268 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4269 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4270 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4271 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4272 </span> 4273 </p> 4274 4275 <p class="item-info">Sets the preferred visibility of the non-transient system views overlaying the app.</p> 4276 4277</li> 4278 4279 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4280 <p> 4281 <a href="https://developer.apple.com/documentation/swiftui/view/preferredcolorscheme(_:)">.preferredColorScheme()</a> 4282 4283 4284 4285 <span class="os-list"> 4286 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 4287 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 4288 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 4289 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 4290 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4291 </span> 4292 </p> 4293 4294 <p class="item-info">Sets the preferred color scheme for this presentation.</p> 4295 4296</li> 4297 4298 <li class="with-xrOS"> 4299 <p> 4300 <a href="https://developer.apple.com/documentation/swiftui/view/preferredsurroundingseffect(_:)">.preferredSurroundingsEffect()</a> 4301 4302 4303 4304 <span class="os-list"> 4305 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4306 </span> 4307 </p> 4308 4309 <p class="item-info">Sets the preference for the video passthrough effect of the userâs surroundings. Use nil to state no preference. Note that this modifier only sets a preference and ultimately the system will decide if it will honor it or not.</p> 4310 4311</li> 4312 4313 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4314 <p> 4315 <a href="https://developer.apple.com/documentation/swiftui/view/privacysensitive(_:)">.privacySensitive()</a> 4316 4317 4318 4319 <span class="os-list"> 4320 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 4321 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 4322 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 4323 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 4324 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4325 </span> 4326 </p> 4327 4328 <p class="item-info">Marks the view as containing sensitive, private user data.</p> 4329 4330</li> 4331 4332 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4333 <p> 4334 <a href="https://developer.apple.com/documentation/swiftui/view/redacted(reason:)">.redacted()</a> 4335 4336 4337 4338 <span class="os-list"> 4339 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 4340 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 4341 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 4342 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 4343 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4344 </span> 4345 </p> 4346 4347 <p class="item-info">Adds a reason to apply a redaction to this view hierarchy.</p> 4348 4349</li> 4350 4351 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4352 <p> 4353 <a href="https://developer.apple.com/documentation/swiftui/view/scrollbouncebehavior(_:axes:)">.scrollBounceBehavior()</a> 4354 4355 4356 4357 <span class="os-list"> 4358 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 4359 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 4360 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 4361 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 4362 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4363 </span> 4364 </p> 4365 4366 <p class="item-info">Configures the bounce behavior of scrollable views along the specified axis.</p> 4367 4368</li> 4369 4370 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4371 <p> 4372 <a href="https://developer.apple.com/documentation/swiftui/view/scrollclipdisabled(_:)">.scrollClipDisabled()</a> 4373 4374 4375 4376 <span class="os-list">
4377 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4378 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4379 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 4380 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 4381 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4382 </span> 4383 </p> 4384 4385 <p class="item-info">Sets whether a scroll view clips its content to its bounds.</p> 4386 4387</li> 4388 4389 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 4390 <p> 4391 <a href="https://developer.apple.com/documentation/swiftui/view/scrollcontentbackground(_:)">.scrollContentBackground()</a> 4392 4393 4394 4395 <span class="os-list"> 4396 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4397 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4398 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4399 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4400 </span> 4401 </p> 4402 4403 <p class="item-info">Specifies the visibility of the background for scrollable views within this view.</p> 4404 4405</li> 4406 4407 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4408 <p> 4409 <a href="https://developer.apple.com/documentation/swiftui/view/scrolldisabled(_:)">.scrollDisabled()</a> 4410 4411 4412 4413 <span class="os-list"> 4414 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4415 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4416 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4417 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4418 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4419 </span> 4420 </p> 4421 4422 <p class="item-info">Disables or enables scrolling in scrollable views.</p> 4423 4424</li> 4425 4426 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4427 <p> 4428 <a href="https://developer.apple.com/documentation/swiftui/view/scrollindicators(_:axes:)">.scrollIndicators()</a> 4429 4430 4431 4432 <span class="os-list"> 4433 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4434 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4435 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4436 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4437 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4438 </span> 4439 </p> 4440 4441 <p class="item-info">Sets the visibility of scroll indicators within this view.</p> 4442 4443</li> 4444 4445 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4446 <p> 4447 <a href="https://developer.apple.com/documentation/swiftui/view/scrollindicatorsflash(trigger:)">.scrollIndicatorsFlash()</a> 4448 4449 4450 4451 <span class="os-list"> 4452 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4453 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4454 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 4455 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 4456 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4457 </span> 4458 </p> 4459 4460 <p class="item-info">Flashes the scroll indicators of scrollable views when a value changes.</p> 4461 4462</li> 4463 4464 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS"> 4465 <p> 4466 <a href="https://developer.apple.com/documentation/swiftui/view/sensoryfeedback(_:trigger:)">.sensoryFeedback()</a> 4467 4468 4469 4470 <span class="os-list"> 4471 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4472 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4473 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 4474 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 4475 </span> 4476 </p> 4477 4478 <p class="item-info">Plays the specified feedback when the provided trigger value changes.</p> 4479 4480</li> 4481 4482 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4483 <p> 4484 <a href="https://developer.apple.com/documentation/swiftui/view/symboleffect(_:options:value:)">.symbolEffect()</a> 4485 4486 4487 4488 <span class="os-list">
4489 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4490 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4491 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 4492 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 4493 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4494 </span> 4495 </p> 4496 4497 <p class="item-info">Returns a new view with a symbol effect added to it.</p> 4498 4499</li> 4500 4501 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4502 <p> 4503 <a href="https://developer.apple.com/documentation/swiftui/view/symboleffectsremoved(_:)">.symbolEffectsRemoved()</a> 4504 4505 4506 4507 <span class="os-list"> 4508 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4509 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4510 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 4511 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 4512 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4513 </span> 4514 </p> 4515 4516 <p class="item-info">Returns a new view with its inherited symbol image effects either removed or left unchanged.</p> 4517 4518</li> 4519 4520 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 4521 <p> 4522 <a href="https://developer.apple.com/documentation/swiftui/view/tablecolumnheaders(_:)">.tableColumnHeaders()</a> 4523 4524 4525 4526 <span class="os-list"> 4527 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4528 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4529 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4530 </span> 4531 </p> 4532 4533 <p class="item-info">Controls the visibility of a Tableâs column header views.</p> 4534 4535</li> 4536 4537 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4538 <p> 4539 <a href="https://developer.apple.com/documentation/swiftui/view/tint(_:)-93mfq">.tint()</a> 4540 4541 4542 4543 <span class="os-list"> 4544 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 4545 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 4546 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 4547 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 4548 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4549 </span> 4550 </p> 4551 4552 <p class="item-info">Sets the tint within this view.</p> 4553 4554</li> 4555 4556 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4557 <p> 4558 <a href="https://developer.apple.com/documentation/swiftui/view/typeselectequivalent(_:)-36h0i">.typeSelectEquivalent()</a> 4559 4560 4561 4562 <span class="os-list"> 4563 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4564 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4565 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4566 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4567 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4568 </span> 4569 </p> 4570 4571 <p class="item-info">Sets an explicit type select equivalent text in a collection, such as a list or table.</p> 4572 4573</li> 4574 4575 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4576 <p> 4577 <a href="https://developer.apple.com/documentation/swiftui/view/unredacted()">.unredacted()</a> 4578 4579 4580 4581 <span class="os-list"> 4582 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 4583 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 4584 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 4585 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 4586 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4587 </span> 4588 </p> 4589 4590 <p class="item-info">Removes any reason to apply a redaction to this view hierarchy.</p> 4591 4592</li> 4593 4594 </ul> 4595 </div> 4596 4597 <div class="section with-iOS with-macOS with-xrOS with-watchOS with-tvOS with-Catalyst"> 4598 <h4>Auxiliary View Modifiers</h4> 4599 4600 <ul> 4601 <li class="empty"></li> 4602 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 4603 <p> 4604 <a href="https://developer.apple.com/documentation/swiftui/view/badge(_:)-6x46k">.badge()</a> 4605 4606 4607 4608 <span class="os-list">
4609 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 4610 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 4611 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4612 </span> 4613 </p> 4614 4615 <p class="item-info">Generates a badge for the view from a string.</p> 4616 4617</li> 4618 4619 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 4620 <p> 4621 <a href="https://developer.apple.com/documentation/swiftui/view/badgeprominence(_:)">.badgeProminence()</a> 4622 4623 4624 4625 <span class="os-list"> 4626 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4627 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4628 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4629 </span> 4630 </p> 4631 4632 <p class="item-info">Specifies the prominence of badges created by this view.</p> 4633 4634</li> 4635 4636 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4637 <p> 4638 <a href="https://developer.apple.com/documentation/swiftui/view/contextmenu(menuitems:)">.contextMenu()</a> 4639 4640 4641 4642 <span class="os-list"> 4643 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 4644 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 4645 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 4646 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 4647 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4648 </span> 4649 </p> 4650 4651 <p class="item-info">Adds a context menu to a view.</p> 4652 4653</li> 4654 4655 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4656 <p> 4657 <a href="https://developer.apple.com/documentation/swiftui/view/help(_:)-6oiyb">.help()</a> 4658 4659 4660 4661 <span class="os-list"> 4662 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 4663 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 4664 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 4665 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 4666 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4667 </span> 4668 </p> 4669 4670 <p class="item-info">Adds help text to a view using a string that you provide.</p> 4671 4672</li> 4673 4674 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4675 <p> 4676 <a href="https://developer.apple.com/documentation/swiftui/view/navigationbarbackbuttonhidden(_:)">.navigationBarBackButtonHidden()</a> 4677 4678 4679 4680 <span class="os-list"> 4681 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 4682 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4683 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 4684 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 4685 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4686 </span> 4687 </p> 4688 4689 <p class="item-info">Hides the navigation bar back button for the view.</p> 4690 4691</li> 4692 4693 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-xrOS"> 4694 <p> 4695 <a href="https://developer.apple.com/documentation/swiftui/view/navigationbartitledisplaymode(_:)">.navigationBarTitleDisplayMode()</a> 4696 4697 4698 4699 <span class="os-list"> 4700 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 4701 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 4702 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4703 </span> 4704 </p> 4705 4706 <p class="item-info">Configures the title display mode for this view.</p> 4707 4708</li> 4709 4710 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4711 <p> 4712 <a href="https://developer.apple.com/documentation/swiftui/view/navigationdestination(for:destination:)">.navigationDestination()</a> 4713 4714 4715 4716 <span class="os-list"> 4717 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4718 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4719 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4720 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span>
4721 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4722 </span> 4723 </p> 4724 4725 <p class="item-info">Associates a destination view with a presented data type for use within a navigation stack.</p> 4726 4727</li> 4728 4729 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4730 <p> 4731 <a href="https://developer.apple.com/documentation/swiftui/view/navigationdocument(_:)-6ivu7">.navigationDocument()</a> 4732 4733 4734 4735 <span class="os-list"> 4736 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4737 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4738 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4739 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4740 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4741 </span> 4742 </p> 4743 4744 <p class="item-info">Configures the viewâs document for purposes of navigation.</p> 4745 4746</li> 4747 4748 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4749 <p> 4750 <a href="https://developer.apple.com/documentation/swiftui/view/navigationsplitviewcolumnwidth(_:)">.navigationSplitViewColumnWidth()</a> 4751 4752 4753 4754 <span class="os-list"> 4755 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4756 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4757 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4758 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4759 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4760 </span> 4761 </p> 4762 4763 <p class="item-info">Sets a fixed, preferred width for the column containing this view.</p> 4764 4765</li> 4766 4767 <li class="with-macOS with-Catalyst"> 4768 <p> 4769 <a href="https://developer.apple.com/documentation/swiftui/view/navigationsubtitle(_:)-2h20t">.navigationSubtitle()</a> 4770 4771 4772 4773 <span class="os-list"> 4774 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 4775 <span class="tag Catalyst" data-version="14.0">Catalyst 14.0</span> 4776 </span> 4777 </p> 4778 4779 <p class="item-info">Configures the viewâs subtitle for purposes of navigation.</p> 4780 4781</li> 4782 4783 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4784 <p> 4785 <a href="https://developer.apple.com/documentation/swiftui/view/navigationtitle(_:)-5di1u">.navigationTitle()</a> 4786 4787 4788 4789 <span class="os-list"> 4790 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 4791 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 4792 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 4793 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 4794 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4795 </span> 4796 </p> 4797 4798 <p class="item-info">Configures the viewâs title for purposes of navigation.</p> 4799 4800</li> 4801 4802 <li class="with-xrOS"> 4803 <p> 4804 <a href="https://developer.apple.com/documentation/swiftui/view/ornament(visibility:attachmentanchor:contentalignment:ornament:)">.ornament()</a> 4805 4806 4807 4808 <span class="os-list"> 4809 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4810 </span> 4811 </p> 4812 4813 <p class="item-info">Presents an ornament.</p> 4814 4815</li> 4816 4817 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 4818 <p> 4819 <a href="https://developer.apple.com/documentation/swiftui/view/statusbarhidden(_:)">.statusBarHidden()</a> 4820 4821 4822 4823 <span class="os-list"> 4824 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 4825 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4826 </span> 4827 </p> 4828 4829 <p class="item-info">Sets the visibility of the status bar.</p> 4830 4831</li> 4832 4833 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4834 <p> 4835 <a href="https://developer.apple.com/documentation/swiftui/view/tabitem(_:)">.tabItem()</a> 4836 4837 4838 4839 <span class="os-list"> 4840 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 4841 <span class="tag macOS" data-version="10.15">macOS 10.15</span>
4842 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 4843 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 4844 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4845 </span> 4846 </p> 4847 4848 <p class="item-info">Sets the tab bar item associated with this view.</p> 4849 4850</li> 4851 4852 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4853 <p> 4854 <a href="https://developer.apple.com/documentation/swiftui/view/toolbar(content:)-5w0tj">.toolbar()</a> 4855 4856 4857 4858 <span class="os-list"> 4859 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 4860 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 4861 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 4862 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 4863 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4864 </span> 4865 </p> 4866 4867 <p class="item-info">Populates the toolbar or navigation bar with the specified items.</p> 4868 4869</li> 4870 4871 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4872 <p> 4873 <a href="https://developer.apple.com/documentation/swiftui/view/toolbarbackground(_:for:)-7lv0f">.toolbarBackground()</a> 4874 4875 4876 4877 <span class="os-list"> 4878 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4879 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4880 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4881 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4882 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4883 </span> 4884 </p> 4885 4886 <p class="item-info">Specifies the preferred visibility of backgrounds on a bar managed by SwiftUI.</p> 4887 4888</li> 4889 4890 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4891 <p> 4892 <a href="https://developer.apple.com/documentation/swiftui/view/toolbarcolorscheme(_:for:)">.toolbarColorScheme()</a> 4893 4894 4895 4896 <span class="os-list"> 4897 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4898 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4899 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4900 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4901 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4902 </span> 4903 </p> 4904 4905 <p class="item-info">Specifies the preferred color scheme of a bar managed by SwiftUI.</p> 4906 4907</li> 4908 4909 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4910 <p> 4911 <a href="https://developer.apple.com/documentation/swiftui/view/toolbarrole(_:)">.toolbarRole()</a> 4912 4913 4914 4915 <span class="os-list"> 4916 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4917 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4918 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4919 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4920 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4921 </span> 4922 </p> 4923 4924 <p class="item-info">Configures the semantic role for the content populating the toolbar.</p> 4925 4926</li> 4927 4928 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4929 <p> 4930 <a href="https://developer.apple.com/documentation/swiftui/view/toolbartitledisplaymode(_:)">.toolbarTitleDisplayMode()</a> 4931 4932 4933 4934 <span class="os-list"> 4935 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 4936 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 4937 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 4938 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 4939 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4940 </span> 4941 </p> 4942 4943 <p class="item-info">Configures the toolbar title display mode for this view.</p> 4944 4945</li> 4946 4947 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 4948 <p> 4949 <a href="https://developer.apple.com/documentation/swiftui/view/toolbartitlemenu(content:)">.toolbarTitleMenu()</a> 4950 4951 4952 4953 <span class="os-list">
4954 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 4955 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 4956 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 4957 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 4958 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 4959 </span> 4960 </p> 4961 4962 <p class="item-info">Configure the title menu of a toolbar.</p> 4963 4964</li> 4965 4966 <li class="with-macOS"> 4967 <p> 4968 <a href="https://developer.apple.com/documentation/swiftui/view/touchbar(_:)">.touchBar()</a> 4969 4970 4971 4972 <span class="os-list"> 4973 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 4974 </span> 4975 </p> 4976 4977 <p class="item-info">Sets the Touch Bar content to be shown in the Touch Bar when applicable.</p> 4978 4979</li> 4980 4981 <li class="with-macOS"> 4982 <p> 4983 <a href="https://developer.apple.com/documentation/swiftui/view/touchbarcustomizationlabel(_:)">.touchBarCustomizationLabel()</a> 4984 4985 4986 4987 <span class="os-list"> 4988 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 4989 </span> 4990 </p> 4991 4992 <p class="item-info">Sets a user-visible string that identifies the viewâs functionality.</p> 4993 4994</li> 4995 4996 <li class="with-macOS"> 4997 <p> 4998 <a href="https://developer.apple.com/documentation/swiftui/view/touchbaritempresence(_:)">.touchBarItemPresence()</a> 4999 5000 5001 5002 <span class="os-list"> 5003 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5004 </span> 5005 </p> 5006 5007 <p class="item-info">Sets the behavior of the user-customized view.</p> 5008 5009</li> 5010 5011 <li class="with-macOS"> 5012 <p> 5013 <a href="https://developer.apple.com/documentation/swiftui/view/touchbaritemprincipal(_:)">.touchBarItemPrincipal()</a> 5014 5015 5016 5017 <span class="os-list"> 5018 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5019 </span> 5020 </p> 5021 5022 <p class="item-info">Sets principal views that have special significance to this Touch Bar.</p> 5023 5024</li> 5025 5026 </ul> 5027 </div> 5028 5029 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 5030 <h4>Chart View Modifiers</h4> 5031 5032 <ul> 5033 <li class="empty"></li> 5034 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5035 <p> 5036 <a href="https://developer.apple.com/documentation/swiftui/view/chartangleselection(_:)">.chartAngleSelection()</a> 5037 5038 <span class="tag">Charts</span> 5039 5040 5041 <span class="os-list"> 5042 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5043 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5044 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5045 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5046 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5047 </span> 5048 </p> 5049 5050 5051</li> 5052 5053 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5054 <p> 5055 <a href="https://developer.apple.com/documentation/swiftui/view/chartbackground(alignment:content:)">.chartBackground()</a> 5056 5057 <span class="tag">Charts</span> 5058 5059 5060 <span class="os-list"> 5061 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5062 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5063 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5064 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5065 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5066 </span> 5067 </p> 5068 5069 <p class="item-info">Adds a background to a view that contains a chart.</p> 5070 5071</li> 5072 5073 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5074 <p> 5075 <a href="https://developer.apple.com/documentation/swiftui/view/chartforegroundstylescale(_:)">.chartForegroundStyleScale()</a> 5076 5077 <span class="tag">Charts</span> 5078 5079 5080 <span class="os-list"> 5081 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5082 <span class="tag macOS" data-version="13.0">macOS 13.0</span>
5083 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5084 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5085 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5086 </span> 5087 </p> 5088 5089 <p class="item-info">Configures the foreground style scale for charts.</p> 5090 5091</li> 5092 5093 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5094 <p> 5095 <a href="https://developer.apple.com/documentation/swiftui/view/chartgesture(_:)">.chartGesture()</a> 5096 5097 <span class="tag">Charts</span> 5098 5099 5100 <span class="os-list"> 5101 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5102 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5103 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5104 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5105 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5106 </span> 5107 </p> 5108 5109 5110</li> 5111 5112 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5113 <p> 5114 <a href="https://developer.apple.com/documentation/swiftui/view/chartlegend(_:)">.chartLegend()</a> 5115 5116 <span class="tag">Charts</span> 5117 5118 5119 <span class="os-list"> 5120 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5121 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5122 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5123 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5124 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5125 </span> 5126 </p> 5127 5128 <p class="item-info">Configures the legend for charts.</p> 5129 5130</li> 5131 5132 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5133 <p> 5134 <a href="https://developer.apple.com/documentation/swiftui/view/chartlinestylescale(_:)">.chartLineStyleScale()</a> 5135 5136 <span class="tag">Charts</span> 5137 5138 5139 <span class="os-list"> 5140 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5141 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5142 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5143 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5144 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5145 </span> 5146 </p> 5147 5148 <p class="item-info">Configures the line style scale for charts.</p> 5149 5150</li> 5151 5152 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5153 <p> 5154 <a href="https://developer.apple.com/documentation/swiftui/view/chartoverlay(alignment:content:)">.chartOverlay()</a> 5155 5156 <span class="tag">Charts</span> 5157 5158 5159 <span class="os-list"> 5160 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5161 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5162 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5163 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5164 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5165 </span> 5166 </p> 5167 5168 <p class="item-info">Adds an overlay to a view that contains a chart.</p> 5169 5170</li> 5171 5172 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5173 <p> 5174 <a href="https://developer.apple.com/documentation/swiftui/view/chartplotstyle(content:)">.chartPlotStyle()</a> 5175 5176 <span class="tag">Charts</span> 5177 5178 5179 <span class="os-list"> 5180 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5181 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5182 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5183 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5184 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5185 </span> 5186 </p> 5187 5188 <p class="item-info">Configures the plot area of charts.</p> 5189 5190</li> 5191 5192 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5193 <p> 5194 <a href="https://developer.apple.com/documentation/swiftui/view/chartscrollableaxes(_:)">.chartScrollableAxes()</a> 5195
5196 <span class="tag">Charts</span> 5197 5198 5199 <span class="os-list"> 5200 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5201 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5202 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5203 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5204 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5205 </span> 5206 </p> 5207 5208 <p class="item-info">Configures the scrollable behavior of charts in this view.</p> 5209 5210</li> 5211 5212 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5213 <p> 5214 <a href="https://developer.apple.com/documentation/swiftui/view/chartscrollposition(x:)">.chartScrollPosition()</a> 5215 5216 <span class="tag">Charts</span> 5217 5218 5219 <span class="os-list"> 5220 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5221 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5222 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5223 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5224 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5225 </span> 5226 </p> 5227 5228 <p class="item-info">Associates a binding to be updated when the chart scrolls along the x-axis.</p> 5229 5230</li> 5231 5232 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5233 <p> 5234 <a href="https://developer.apple.com/documentation/swiftui/view/chartscrolltargetbehavior(_:)">.chartScrollTargetBehavior()</a> 5235 5236 <span class="tag">Charts</span> 5237 5238 5239 <span class="os-list"> 5240 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5241 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5242 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5243 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5244 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5245 </span> 5246 </p> 5247 5248 <p class="item-info">Sets the scroll behavior of the scrollable chart.</p> 5249 5250</li> 5251 5252 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5253 <p> 5254 <a href="https://developer.apple.com/documentation/swiftui/view/chartsymbolscale(_:)-58llj">.chartSymbolScale()</a> 5255 5256 <span class="tag">Charts</span> 5257 5258 5259 <span class="os-list"> 5260 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5261 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5262 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5263 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5264 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5265 </span> 5266 </p> 5267 5268 <p class="item-info">Configures the symbol scale for charts.</p> 5269 5270</li> 5271 5272 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5273 <p> 5274 <a href="https://developer.apple.com/documentation/swiftui/view/chartsymbolsizescale(_:)">.chartSymbolSizeScale()</a> 5275 5276 <span class="tag">Charts</span> 5277 5278 5279 <span class="os-list"> 5280 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5281 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5282 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5283 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5284 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5285 </span> 5286 </p> 5287 5288 <p class="item-info">Configures the symbol size scale for charts.</p> 5289 5290</li> 5291 5292 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5293 <p> 5294 <a href="https://developer.apple.com/documentation/swiftui/view/chartxaxis(_:)">.chartXAxis()</a> 5295 5296 <span class="tag">Charts</span> 5297 5298 5299 <span class="os-list"> 5300 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5301 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5302 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5303 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span>
5304 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5305 </span> 5306 </p> 5307 5308 <p class="item-info">Sets the visibility of the x axis.</p> 5309 5310</li> 5311 5312 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5313 <p> 5314 <a href="https://developer.apple.com/documentation/swiftui/view/chartxaxislabel(_:position:alignment:spacing:)-4wvwq">.chartXAxisLabel()</a> 5315 5316 <span class="tag">Charts</span> 5317 5318 5319 <span class="os-list"> 5320 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5321 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5322 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5323 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5324 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5325 </span> 5326 </p> 5327 5328 <p class="item-info">Adds x axis label for charts in the view.</p> 5329 5330</li> 5331 5332 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5333 <p> 5334 <a href="https://developer.apple.com/documentation/swiftui/view/chartxaxisstyle(content:)">.chartXAxisStyle()</a> 5335 5336 <span class="tag">Charts</span> 5337 5338 5339 <span class="os-list"> 5340 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5341 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5342 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5343 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5344 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5345 </span> 5346 </p> 5347 5348 <p class="item-info">Configures the x axis content of charts.</p> 5349 5350</li> 5351 5352 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5353 <p> 5354 <a href="https://developer.apple.com/documentation/swiftui/view/chartxscale(type:)">.chartXScale()</a> 5355 5356 <span class="tag">Charts</span> 5357 5358 5359 <span class="os-list"> 5360 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5361 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5362 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5363 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5364 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5365 </span> 5366 </p> 5367 5368 <p class="item-info">Configures the x scale for charts.</p> 5369 5370</li> 5371 5372 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5373 <p> 5374 <a href="https://developer.apple.com/documentation/swiftui/view/chartxselection(value:)">.chartXSelection()</a> 5375 5376 <span class="tag">Charts</span> 5377 5378 5379 <span class="os-list"> 5380 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5381 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5382 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5383 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5384 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5385 </span> 5386 </p> 5387 5388 5389</li> 5390 5391 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5392 <p> 5393 <a href="https://developer.apple.com/documentation/swiftui/view/chartxvisibledomain(length:)">.chartXVisibleDomain()</a> 5394 5395 <span class="tag">Charts</span> 5396 5397 5398 <span class="os-list"> 5399 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5400 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5401 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5402 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5403 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5404 </span> 5405 </p> 5406 5407 <p class="item-info">Sets the length of the visible domain in the X dimension.</p> 5408 5409</li> 5410 5411 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5412 <p> 5413 <a href="https://developer.apple.com/documentation/swiftui/view/chartyaxis(_:)">.chartYAxis()</a> 5414 5415 <span class="tag">Charts</span> 5416 5417 5418 <span class="os-list">
5419 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5420 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5421 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5422 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5423 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5424 </span> 5425 </p> 5426 5427 <p class="item-info">Sets the visibility of the y axis.</p> 5428 5429</li> 5430 5431 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5432 <p> 5433 <a href="https://developer.apple.com/documentation/swiftui/view/chartyaxislabel(_:position:alignment:spacing:)-bbz9">.chartYAxisLabel()</a> 5434 5435 <span class="tag">Charts</span> 5436 5437 5438 <span class="os-list"> 5439 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5440 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5441 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5442 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5443 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5444 </span> 5445 </p> 5446 5447 <p class="item-info">Adds y axis label for charts in the view.</p> 5448 5449</li> 5450 5451 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5452 <p> 5453 <a href="https://developer.apple.com/documentation/swiftui/view/chartyaxisstyle(content:)">.chartYAxisStyle()</a> 5454 5455 <span class="tag">Charts</span> 5456 5457 5458 <span class="os-list"> 5459 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5460 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5461 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5462 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5463 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5464 </span> 5465 </p> 5466 5467 <p class="item-info">Configures the y axis content of charts.</p> 5468 5469</li> 5470 5471 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5472 <p> 5473 <a href="https://developer.apple.com/documentation/swiftui/view/chartyscale(type:)">.chartYScale()</a> 5474 5475 <span class="tag">Charts</span> 5476 5477 5478 <span class="os-list"> 5479 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5480 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5481 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5482 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5483 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5484 </span> 5485 </p> 5486 5487 <p class="item-info">Configures the y scale for charts.</p> 5488 5489</li> 5490 5491 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5492 <p> 5493 <a href="https://developer.apple.com/documentation/swiftui/view/chartyselection(value:)">.chartYSelection()</a> 5494 5495 <span class="tag">Charts</span> 5496 5497 5498 <span class="os-list"> 5499 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5500 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5501 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5502 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5503 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5504 </span> 5505 </p> 5506 5507 5508</li> 5509 5510 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5511 <p> 5512 <a href="https://developer.apple.com/documentation/swiftui/view/chartyvisibledomain(length:)">.chartYVisibleDomain()</a> 5513 5514 <span class="tag">Charts</span> 5515 5516 5517 <span class="os-list"> 5518 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5519 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5520 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5521 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5522 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5523 </span> 5524 </p> 5525 5526 <p class="item-info">Sets the length of the visible domain in the Y dimension.</p> 5527 5528</li> 5529 5530 </ul> 5531 </div> 5532 5533 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 5534 <h4>Graphics and Rendering Modifiers</h4> 5535 5536 <ul> 5537 <li class="empty"></li> 5538 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5539 <p> 5540 <a href="https://developer.apple.com/documentation/swiftui/view/animation(_:)-7mq1i">.animation()</a> 5541 5542 5543 5544 <span class="os-list">
5545 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5546 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5547 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5548 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5549 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5550 </span> 5551 </p> 5552 5553 <p class="item-info">Applies the given animation to this view when this view changes.</p> 5554 5555</li> 5556 5557 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5558 <p> 5559 <a href="https://developer.apple.com/documentation/swiftui/view/aspectratio(_:contentmode:)-6j7xz">.aspectRatio()</a> 5560 5561 5562 5563 <span class="os-list"> 5564 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5565 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5566 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5567 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5568 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5569 </span> 5570 </p> 5571 5572 <p class="item-info">Constrains this viewâs dimensions to the specified aspect ratio.</p> 5573 5574</li> 5575 5576 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5577 <p> 5578 <a href="https://developer.apple.com/documentation/swiftui/view/blendmode(_:)">.blendMode()</a> 5579 5580 5581 5582 <span class="os-list"> 5583 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5584 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5585 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5586 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5587 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5588 </span> 5589 </p> 5590 5591 <p class="item-info">Sets the blend mode for compositing this view with overlapping views.</p> 5592 5593</li> 5594 5595 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5596 <p> 5597 <a href="https://developer.apple.com/documentation/swiftui/view/blur(radius:opaque:)">.blur()</a> 5598 5599 5600 5601 <span class="os-list"> 5602 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5603 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5604 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5605 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5606 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5607 </span> 5608 </p> 5609 5610 <p class="item-info">Applies a Gaussian blur to this view.</p> 5611 5612</li> 5613 5614 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5615 <p> 5616 <a href="https://developer.apple.com/documentation/swiftui/view/brightness(_:)">.brightness()</a> 5617 5618 5619 5620 <span class="os-list"> 5621 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5622 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5623 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5624 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5625 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5626 </span> 5627 </p> 5628 5629 <p class="item-info">Brightens this view by the specified amount.</p> 5630 5631</li> 5632 5633 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5634 <p> 5635 <a href="https://developer.apple.com/documentation/swiftui/view/clipped(antialiased:)">.clipped()</a> 5636 5637 5638 5639 <span class="os-list"> 5640 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5641 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5642 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5643 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5644 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5645 </span> 5646 </p> 5647 5648 <p class="item-info">Clips this view to its bounding rectangular frame.</p> 5649 5650</li> 5651 5652 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5653 <p> 5654 <a href="https://developer.apple.com/documentation/swiftui/view/clipshape(_:style:)">.clipShape()</a> 5655 5656 5657 5658 <span class="os-list">
5659 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5660 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5661 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5662 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5663 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5664 </span> 5665 </p> 5666 5667 <p class="item-info">Sets a clipping shape for this view.</p> 5668 5669</li> 5670 5671 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 5672 <p> 5673 <a href="https://developer.apple.com/documentation/swiftui/view/coloreffect(_:isenabled:)">.colorEffect()</a> 5674 5675 5676 5677 <span class="os-list"> 5678 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5679 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5680 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5681 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5682 </span> 5683 </p> 5684 5685 <p class="item-info">Returns a new view that applies shader to self as a filter effect on the color of each pixel.</p> 5686 5687</li> 5688 5689 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5690 <p> 5691 <a href="https://developer.apple.com/documentation/swiftui/view/colorinvert()">.colorInvert()</a> 5692 5693 5694 5695 <span class="os-list"> 5696 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5697 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5698 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5699 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5700 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5701 </span> 5702 </p> 5703 5704 <p class="item-info">Inverts the colors in this view.</p> 5705 5706</li> 5707 5708 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5709 <p> 5710 <a href="https://developer.apple.com/documentation/swiftui/view/colormultiply(_:)">.colorMultiply()</a> 5711 5712 5713 5714 <span class="os-list"> 5715 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5716 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5717 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5718 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5719 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5720 </span> 5721 </p> 5722 5723 <p class="item-info">Adds a color multiplication effect to this view.</p> 5724 5725</li> 5726 5727 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5728 <p> 5729 <a href="https://developer.apple.com/documentation/swiftui/view/compositinggroup()">.compositingGroup()</a> 5730 5731 5732 5733 <span class="os-list"> 5734 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5735 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5736 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5737 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5738 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5739 </span> 5740 </p> 5741 5742 <p class="item-info">Wraps this view in a compositing group.</p> 5743 5744</li> 5745 5746 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5747 <p> 5748 <a href="https://developer.apple.com/documentation/swiftui/view/containershape(_:)">.containerShape()</a> 5749 5750 5751 5752 <span class="os-list"> 5753 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 5754 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 5755 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 5756 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 5757 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5758 </span> 5759 </p> 5760 5761 <p class="item-info">Sets the container shape to use for any container relative shape within this view.</p> 5762 5763</li> 5764 5765 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5766 <p> 5767 <a href="https://developer.apple.com/documentation/swiftui/view/contenttransition(_:)">
5767.contentTransition()</a> 5768 5769 5770 5771 <span class="os-list"> 5772 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 5773 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 5774 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 5775 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 5776 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5777 </span> 5778 </p> 5779 5780 <p class="item-info">Modifies the view to use a given transition as its method of animating changes to the contents of its views.</p> 5781 5782</li> 5783 5784 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5785 <p> 5786 <a href="https://developer.apple.com/documentation/swiftui/view/contrast(_:)">.contrast()</a> 5787 5788 5789 5790 <span class="os-list"> 5791 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5792 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5793 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5794 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5795 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5796 </span> 5797 </p> 5798 5799 <p class="item-info">Sets the contrast and separation between similar colors in this view.</p> 5800 5801</li> 5802 5803 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 5804 <p> 5805 <a href="https://developer.apple.com/documentation/swiftui/view/distortioneffect(_:maxsampleoffset:isenabled:)">.distortionEffect()</a> 5806 5807 5808 5809 <span class="os-list"> 5810 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5811 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5812 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5813 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5814 </span> 5815 </p> 5816 5817 <p class="item-info">Returns a new view that applies shader to self as a geometric distortion effect on the location of each pixel.</p> 5818 5819</li> 5820 5821 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5822 <p> 5823 <a href="https://developer.apple.com/documentation/swiftui/view/drawinggroup(opaque:colormode:)">.drawingGroup()</a> 5824 5825 5826 5827 <span class="os-list"> 5828 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5829 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5830 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5831 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5832 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5833 </span> 5834 </p> 5835 5836 <p class="item-info">Composites this viewâs contents into an offscreen image before final display.</p> 5837 5838</li> 5839 5840 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5841 <p> 5842 <a href="https://developer.apple.com/documentation/swiftui/view/grayscale(_:)">.grayscale()</a> 5843 5844 5845 5846 <span class="os-list"> 5847 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5848 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5849 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5850 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5851 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5852 </span> 5853 </p> 5854 5855 <p class="item-info">Adds a grayscale effect to this view.</p> 5856 5857</li> 5858 5859 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5860 <p> 5861 <a href="https://developer.apple.com/documentation/swiftui/view/huerotation(_:)">.hueRotation()</a> 5862 5863 5864 5865 <span class="os-list"> 5866 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5867 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5868 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5869 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5870 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5871 </span> 5872 </p> 5873 5874 <p class="item-info">Applies a hue rotation effect to this view.</p> 5875 5876</li> 5877 5878 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5879 <p> 5880 <a href="https://developer.apple.com/documentation/swiftui/view/imagescale(_:)">.imageScale()</a> 5881 5882 5883 5884 <span class="os-list">
5885 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5886 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 5887 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5888 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5889 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5890 </span> 5891 </p> 5892 5893 <p class="item-info">Scales images within the view according to one of the relative sizes available including small, medium, and large images sizes.</p> 5894 5895</li> 5896 5897 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5898 <p> 5899 <a href="https://developer.apple.com/documentation/swiftui/view/keyframeanimator(initialvalue:trigger:content:keyframes:)">.keyframeAnimator()</a> 5900 5901 5902 5903 <span class="os-list"> 5904 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5905 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5906 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 5907 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5908 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5909 </span> 5910 </p> 5911 5912 <p class="item-info">Plays the given keyframes when the given trigger value changes, updating the view using the modifiers you apply in body.</p> 5913 5914</li> 5915 5916 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 5917 <p> 5918 <a href="https://developer.apple.com/documentation/swiftui/view/layereffect(_:maxsampleoffset:isenabled:)">.layerEffect()</a> 5919 5920 5921 5922 <span class="os-list"> 5923 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 5924 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 5925 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 5926 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5927 </span> 5928 </p> 5929 5930 <p class="item-info">Returns a new view that applies shader to self as a filter on the raster layer created from self.</p> 5931 5932</li> 5933 5934 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5935 <p> 5936 <a href="https://developer.apple.com/documentation/swiftui/view/luminancetoalpha()">.luminanceToAlpha()</a> 5937 5938 5939 5940 <span class="os-list"> 5941 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5942 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5943 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5944 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5945 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5946 </span> 5947 </p> 5948 5949 <p class="item-info">Adds a luminance to alpha effect to this view.</p> 5950 5951</li> 5952 5953 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5954 <p> 5955 <a href="https://developer.apple.com/documentation/swiftui/view/mask(alignment:_:)">.mask()</a> 5956 5957 5958 5959 <span class="os-list"> 5960 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5961 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 5962 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 5963 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 5964 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5965 </span> 5966 </p> 5967 5968 <p class="item-info">Masks this view using the alpha channel of the given view.</p> 5969 5970</li> 5971 5972 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5973 <p> 5974 <a href="https://developer.apple.com/documentation/swiftui/view/matchedgeometryeffect(id:in:properties:anchor:issource:)">.matchedGeometryEffect()</a> 5975 5976 5977 5978 <span class="os-list"> 5979 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 5980 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 5981 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 5982 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 5983 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 5984 </span> 5985 </p> 5986 5987 <p class="item-info">Defines a group of views with synchronized geometry using an identifier and namespace that you provide.</p> 5988 5989</li> 5990 5991 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 5992 <p> 5993 <a href="https://developer.apple.com/documentation/swiftui/view/opacity(_:)">.opacity()</a> 5994 5995 5996 5997 <span class="os-list">
5998 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 5999 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6000 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6001 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6002 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6003 </span> 6004 </p> 6005 6006 <p class="item-info">Sets the transparency of this view.</p> 6007 6008</li> 6009 6010 <li class="with-xrOS"> 6011 <p> 6012 <a href="https://developer.apple.com/documentation/swiftui/view/perspectiverotationeffect(_:axis:anchor:anchorz:perspective:)">.perspectiveRotationEffect()</a> 6013 6014 6015 6016 <span class="os-list"> 6017 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6018 </span> 6019 </p> 6020 6021 <p class="item-info">Rotates this viewâs rendered output in three dimensions around the given axis of rotation.</p> 6022 6023</li> 6024 6025 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6026 <p> 6027 <a href="https://developer.apple.com/documentation/swiftui/view/phaseanimator(_:content:animation:)">.phaseAnimator()</a> 6028 6029 6030 6031 <span class="os-list"> 6032 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 6033 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 6034 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 6035 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 6036 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6037 </span> 6038 </p> 6039 6040 <p class="item-info">Cycles through the given phases continuously, updating the content using the view builder closure that you supply.</p> 6041 6042</li> 6043 6044 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6045 <p> 6046 <a href="https://developer.apple.com/documentation/swiftui/view/projectioneffect(_:)">.projectionEffect()</a> 6047 6048 6049 6050 <span class="os-list"> 6051 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6052 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6053 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6054 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6055 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6056 </span> 6057 </p> 6058 6059 <p class="item-info">Applies a projection transformation to this viewâs rendered output.</p> 6060 6061</li> 6062 6063 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6064 <p> 6065 <a href="https://developer.apple.com/documentation/swiftui/view/rotation3deffect(_:axis:anchor:anchorz:perspective:)">.rotation3DEffect()</a> 6066 6067 6068 6069 <span class="os-list"> 6070 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6071 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6072 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6073 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6074 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6075 </span> 6076 </p> 6077 6078 <p class="item-info">Rotates this viewâs rendered output in three dimensions around the given axis of rotation.</p> 6079 6080</li> 6081 6082 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6083 <p> 6084 <a href="https://developer.apple.com/documentation/swiftui/view/rotationeffect(_:anchor:)">.rotationEffect()</a> 6085 6086 6087 6088 <span class="os-list"> 6089 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6090 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6091 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6092 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6093 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6094 </span> 6095 </p> 6096 6097 <p class="item-info">Rotates this viewâs rendered output around the specified point.</p> 6098 6099</li> 6100 6101 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6102 <p> 6103 <a href="https://developer.apple.com/documentation/swiftui/view/saturation(_:)">.saturation()</a> 6104 6105 6106 6107 <span class="os-list">
6108 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6109 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6110 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6111 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6112 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6113 </span> 6114 </p> 6115 6116 <p class="item-info">Adjusts the color saturation of this view.</p> 6117 6118</li> 6119 6120 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6121 <p> 6122 <a href="https://developer.apple.com/documentation/swiftui/view/scaledtofill()">.scaledToFill()</a> 6123 6124 6125 6126 <span class="os-list"> 6127 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6128 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6129 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6130 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6131 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6132 </span> 6133 </p> 6134 6135 <p class="item-info">Scales this view to fill its parent.</p> 6136 6137</li> 6138 6139 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6140 <p> 6141 <a href="https://developer.apple.com/documentation/swiftui/view/scaledtofit()">.scaledToFit()</a> 6142 6143 6144 6145 <span class="os-list"> 6146 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6147 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6148 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6149 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6150 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6151 </span> 6152 </p> 6153 6154 <p class="item-info">Scales this view to fit its parent.</p> 6155 6156</li> 6157 6158 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6159 <p> 6160 <a href="https://developer.apple.com/documentation/swiftui/view/scaleeffect(_:anchor:)-7q7as">.scaleEffect()</a> 6161 6162 6163 6164 <span class="os-list"> 6165 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6166 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6167 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6168 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6169 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6170 </span> 6171 </p> 6172 6173 <p class="item-info">Scales this viewâs rendered output by the given vertical and horizontal size amounts, relative to an anchor point.</p> 6174 6175</li> 6176 6177 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6178 <p> 6179 <a href="https://developer.apple.com/documentation/swiftui/view/shadow(color:radius:x:y:)">.shadow()</a> 6180 6181 6182 6183 <span class="os-list"> 6184 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6185 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6186 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6187 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6188 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6189 </span> 6190 </p> 6191 6192 <p class="item-info">Adds a shadow to this view.</p> 6193 6194</li> 6195 6196 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6197 <p> 6198 <a href="https://developer.apple.com/documentation/swiftui/view/transaction(_:)">.transaction()</a> 6199 6200 6201 6202 <span class="os-list"> 6203 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6204 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6205 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6206 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6207 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6208 </span> 6209 </p> 6210 6211 <p class="item-info">Applies the given transaction mutation function to all animations used within the view.</p> 6212 6213</li> 6214 6215 <li class="with-xrOS"> 6216 <p> 6217 <a href="https://developer.apple.com/documentation/swiftui/view/transform3deffect(_:)">.transform3DEffect()</a> 6218 6219 6220 6221 <span class="os-list">
6222 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6223 </span> 6224 </p> 6225 6226 <p class="item-info">Applies a 3D transformation to the receiver.</p> 6227 6228</li> 6229 6230 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6231 <p> 6232 <a href="https://developer.apple.com/documentation/swiftui/view/transformeffect(_:)">.transformEffect()</a> 6233 6234 6235 6236 <span class="os-list"> 6237 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6238 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6239 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6240 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6241 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6242 </span> 6243 </p> 6244 6245 <p class="item-info">Applies an affine transformation to this viewâs rendered output.</p> 6246 6247</li> 6248 6249 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6250 <p> 6251 <a href="https://developer.apple.com/documentation/swiftui/view/transition(_:)-5h5h0">.transition()</a> 6252 6253 6254 6255 <span class="os-list"> 6256 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6257 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6258 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6259 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6260 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6261 </span> 6262 </p> 6263 6264 <p class="item-info">Associates a transition with the view.</p> 6265 6266</li> 6267 6268 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6269 <p> 6270 <a href="https://developer.apple.com/documentation/swiftui/view/visualeffect(_:)">.visualEffect()</a> 6271 6272 6273 6274 <span class="os-list"> 6275 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 6276 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 6277 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 6278 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 6279 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6280 </span> 6281 </p> 6282 6283 <p class="item-info">Applies effects to this view, while providing access to layout information via GeometryProxy.</p> 6284 6285</li> 6286 6287 <li class="with-xrOS"> 6288 <p> 6289 <a href="https://developer.apple.com/documentation/swiftui/view/visualeffect3d(_:)">.visualEffect3D()</a> 6290 6291 6292 6293 <span class="os-list"> 6294 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6295 </span> 6296 </p> 6297 6298 <p class="item-info">Applies effects to this view, while providing access to layout information via GeometryProxy3D.</p> 6299 6300</li> 6301 6302 </ul> 6303 </div> 6304 6305 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 6306 <h4>Input and Event Modifiers</h4> 6307 6308 <ul> 6309 <li class="empty"></li> 6310 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6311 <p> 6312 <a href="https://developer.apple.com/documentation/swiftui/view/allowshittesting(_:)">.allowsHitTesting()</a> 6313 6314 6315 6316 <span class="os-list"> 6317 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6318 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6319 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6320 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6321 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6322 </span> 6323 </p> 6324 6325 <p class="item-info">Configures whether this view participates in hit test operations.</p> 6326 6327</li> 6328 6329 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6330 <p> 6331 <a href="https://developer.apple.com/documentation/swiftui/view/contentshape(_:eofill:)">.contentShape()</a> 6332 6333 6334 6335 <span class="os-list"> 6336 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6337 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6338 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span>
6339 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6340 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6341 </span> 6342 </p> 6343 6344 <p class="item-info">Defines the content shape for hit testing.</p> 6345 6346</li> 6347 6348 <li class="with-macOS"> 6349 <p> 6350 <a href="https://developer.apple.com/documentation/swiftui/view/copyable(_:)">.copyable()</a> 6351 6352 6353 6354 <span class="os-list"> 6355 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6356 </span> 6357 </p> 6358 6359 <p class="item-info">Specifies a list of items to copy in response to the systemâs Copy command.</p> 6360 6361</li> 6362 6363 <li class="with-macOS"> 6364 <p> 6365 <a href="https://developer.apple.com/documentation/swiftui/view/cuttable(for:action:)">.cuttable()</a> 6366 6367 6368 6369 <span class="os-list"> 6370 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6371 </span> 6372 </p> 6373 6374 <p class="item-info">Specifies an action that moves items to the Clipboard in response to the systemâs Cut command.</p> 6375 6376</li> 6377 6378 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6379 <p> 6380 <a href="https://developer.apple.com/documentation/swiftui/view/defaultfocus(_:_:priority:)">.defaultFocus()</a> 6381 6382 6383 6384 <span class="os-list"> 6385 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 6386 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6387 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 6388 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 6389 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6390 </span> 6391 </p> 6392 6393 <p class="item-info">Defines a region of the window in which default focus is evaluated by assigning a value to a given focus state binding.</p> 6394 6395</li> 6396 6397 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 6398 <p> 6399 <a href="https://developer.apple.com/documentation/swiftui/view/defaulthovereffect(_:)">.defaultHoverEffect()</a> 6400 6401 6402 6403 <span class="os-list"> 6404 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 6405 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 6406 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6407 </span> 6408 </p> 6409 6410 <p class="item-info">Sets the default hover effect to use for views within this view.</p> 6411 6412</li> 6413 6414 <li class="with-iOS with-iPadOS with-Catalyst"> 6415 <p> 6416 <a href="https://developer.apple.com/documentation/swiftui/view/deferssystemgestures(on:)">.defersSystemGestures()</a> 6417 6418 6419 6420 <span class="os-list"> 6421 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 6422 </span> 6423 </p> 6424 6425 <p class="item-info">Sets the screen edge from which you want your gesture to take precedence over the system gesture.</p> 6426 6427</li> 6428 6429 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6430 <p> 6431 <a href="https://developer.apple.com/documentation/swiftui/view/deletedisabled(_:)">.deleteDisabled()</a> 6432 6433 6434 6435 <span class="os-list"> 6436 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6437 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6438 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6439 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6440 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6441 </span> 6442 </p> 6443 6444 <p class="item-info">Adds a condition for whether the viewâs view hierarchy is deletable.</p> 6445 6446</li> 6447 6448 <li class="with-watchOS"> 6449 <p> 6450 <a href="https://developer.apple.com/documentation/swiftui/view/digitalcrownaccessory(_:)">.digitalCrownAccessory()</a> 6451 6452 6453 6454 <span class="os-list"> 6455 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 6456 </span> 6457 </p> 6458 6459 <p class="item-info">Specifies the visibility of Digital Crown accessory Views on Apple Watch.</p> 6460 6461</li> 6462 6463 <li class="with-watchOS"> 6464 <p> 6465 <a href="https://developer.apple.com/documentation/swiftui/view/digitalcrownrotation(_:)">.digitalCrownRotation()</a> 6466 6467 6468 6469 <span class="os-list">
6470 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6471 </span> 6472 </p> 6473 6474 <p class="item-info">Tracks Digital Crown rotations by updating the specified binding.</p> 6475 6476</li> 6477 6478 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6479 <p> 6480 <a href="https://developer.apple.com/documentation/swiftui/view/disabled(_:)">.disabled()</a> 6481 6482 6483 6484 <span class="os-list"> 6485 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6486 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6487 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6488 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6489 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6490 </span> 6491 </p> 6492 6493 <p class="item-info">Adds a condition that controls whether users can interact with this view.</p> 6494 6495</li> 6496 6497 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 6498 <p> 6499 <a href="https://developer.apple.com/documentation/swiftui/view/draggable(_:)">.draggable()</a> 6500 6501 6502 6503 <span class="os-list"> 6504 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 6505 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6506 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6507 </span> 6508 </p> 6509 6510 <p class="item-info">Activates this view as the source of a drag and drop operation.</p> 6511 6512</li> 6513 6514 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 6515 <p> 6516 <a href="https://developer.apple.com/documentation/swiftui/view/dropdestination(for:action:istargeted:)">.dropDestination()</a> 6517 6518 6519 6520 <span class="os-list"> 6521 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 6522 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6523 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6524 </span> 6525 </p> 6526 6527 <p class="item-info">Defines the destination of a drag and drop operation that handles the dropped content with a closure that you specify.</p> 6528 6529</li> 6530 6531 <li class="with-macOS"> 6532 <p> 6533 <a href="https://developer.apple.com/documentation/swiftui/view/exportabletoservices(_:)">.exportableToServices()</a> 6534 6535 6536 6537 <span class="os-list"> 6538 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6539 </span> 6540 </p> 6541 6542 <p class="item-info">Exports items for consumption by shortcuts, quick actions, and services.</p> 6543 6544</li> 6545 6546 <li class="with-macOS"> 6547 <p> 6548 <a href="https://developer.apple.com/documentation/swiftui/view/exportsitemproviders(_:onexport:)">.exportsItemProviders()</a> 6549 6550 6551 6552 <span class="os-list"> 6553 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 6554 </span> 6555 </p> 6556 6557 <p class="item-info">Exports a read-only item provider for consumption by shortcuts, quick actions, and services.</p> 6558 6559</li> 6560 6561 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6562 <p> 6563 <a href="https://developer.apple.com/documentation/swiftui/view/focusable(_:)">.focusable()</a> 6564 6565 6566 6567 <span class="os-list"> 6568 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 6569 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6570 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6571 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6572 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6573 </span> 6574 </p> 6575 6576 <p class="item-info">Specifies if the view is focusable.</p> 6577 6578</li> 6579 6580 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6581 <p> 6582 <a href="https://developer.apple.com/documentation/swiftui/view/focused(_:)">.focused()</a> 6583 6584 6585 6586 <span class="os-list"> 6587 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 6588 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 6589 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 6590 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span>
6591 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6592 </span> 6593 </p> 6594 6595 <p class="item-info">Modifies this view by binding its focus state to the given Boolean state value.</p> 6596 6597</li> 6598 6599 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6600 <p> 6601 <a href="https://developer.apple.com/documentation/swiftui/view/focusedobject(_:)-26zv7">.focusedObject()</a> 6602 6603 6604 6605 <span class="os-list"> 6606 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 6607 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6608 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 6609 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 6610 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6611 </span> 6612 </p> 6613 6614 <p class="item-info">Creates a new view that exposes the provided object to other views whose state depends on the focused view hierarchy.</p> 6615 6616</li> 6617 6618 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6619 <p> 6620 <a href="https://developer.apple.com/documentation/swiftui/view/focusedsceneobject(_:)-8td7y">.focusedSceneObject()</a> 6621 6622 6623 6624 <span class="os-list"> 6625 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 6626 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6627 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 6628 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 6629 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6630 </span> 6631 </p> 6632 6633 <p class="item-info">Creates a new view that exposes the provided object to other views whose whose state depends on the active scene.</p> 6634 6635</li> 6636 6637 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6638 <p> 6639 <a href="https://developer.apple.com/documentation/swiftui/view/focusedscenevalue(_:_:)-57boz">.focusedSceneValue()</a> 6640 6641 6642 6643 <span class="os-list"> 6644 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 6645 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 6646 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 6647 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 6648 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6649 </span> 6650 </p> 6651 6652 <p class="item-info">Creates a new view that exposes the provided value to other views whose state depends on the active scene.</p> 6653 6654</li> 6655 6656 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6657 <p> 6658 <a href="https://developer.apple.com/documentation/swiftui/view/focusedvalue(_:_:)-odf9">.focusedValue()</a> 6659 6660 6661 6662 <span class="os-list"> 6663 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 6664 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 6665 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 6666 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 6667 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6668 </span> 6669 </p> 6670 6671 <p class="item-info">Creates a new view that exposes the provided value to other views whose state depends on the focused view hierarchy.</p> 6672 6673</li> 6674 6675 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6676 <p> 6677 <a href="https://developer.apple.com/documentation/swiftui/view/focuseffectdisabled(_:)">.focusEffectDisabled()</a> 6678 6679 6680 6681 <span class="os-list"> 6682 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 6683 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 6684 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 6685 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 6686 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6687 </span> 6688 </p> 6689 6690 <p class="item-info">Adds a condition that controls whether this view can display focus effects, such as a default focus ring or hover effect.</p> 6691 6692</li> 6693 6694 <li class="with-macOS with-watchOS with-tvOS"> 6695 <p> 6696 <a href="https://developer.apple.com/documentation/swiftui/view/focusscope(_:)">.focusScope()</a> 6697 6698 6699 6700 <span class="os-list">
6701 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 6702 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 6703 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 6704 </span> 6705 </p> 6706 6707 <p class="item-info">Creates a focus scope that SwiftUI uses to limit default focus preferences.</p> 6708 6709</li> 6710 6711 <li class="with-macOS with-tvOS"> 6712 <p> 6713 <a href="https://developer.apple.com/documentation/swiftui/view/focussection()">.focusSection()</a> 6714 6715 6716 6717 <span class="os-list"> 6718 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6719 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 6720 </span> 6721 </p> 6722 6723 <p class="item-info">Indicates that the viewâs frame and cohort of focusable descendants should be used to guide focus movement.</p> 6724 6725</li> 6726 6727 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6728 <p> 6729 <a href="https://developer.apple.com/documentation/swiftui/view/gesture(_:including:)">.gesture()</a> 6730 6731 6732 6733 <span class="os-list"> 6734 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6735 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6736 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6737 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6738 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6739 </span> 6740 </p> 6741 6742 <p class="item-info">Attaches a gesture to the view with a lower precedence than gestures defined by the view.</p> 6743 6744</li> 6745 6746 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 6747 <p> 6748 <a href="https://developer.apple.com/documentation/swiftui/view/handlesexternalevents(preferring:allowing:)">.handlesExternalEvents()</a> 6749 6750 6751 6752 <span class="os-list"> 6753 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 6754 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 6755 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6756 </span> 6757 </p> 6758 6759 <p class="item-info">Specifies a modifier indicating the Scene this View is in can handle matching incoming External Events.</p> 6760 6761</li> 6762 6763 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6764 <p> 6765 <a href="https://developer.apple.com/documentation/swiftui/view/highprioritygesture(_:including:)">.highPriorityGesture()</a> 6766 6767 6768 6769 <span class="os-list"> 6770 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6771 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6772 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6773 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6774 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6775 </span> 6776 </p> 6777 6778 <p class="item-info">Attaches a gesture to the view with a higher precedence than gestures defined by the view.</p> 6779 6780</li> 6781 6782 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 6783 <p> 6784 <a href="https://developer.apple.com/documentation/swiftui/view/hovereffect(_:)">.hoverEffect()</a> 6785 6786 6787 6788 <span class="os-list"> 6789 <span class="tag iOS" data-version="13.4">iOS 13.4</span> 6790 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 6791 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6792 </span> 6793 </p> 6794 6795 <p class="item-info">Applies a hover effect to this view.</p> 6796 6797</li> 6798 6799 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 6800 <p> 6801 <a href="https://developer.apple.com/documentation/swiftui/view/hovereffectdisabled(_:)">.hoverEffectDisabled()</a> 6802 6803 6804 6805 <span class="os-list"> 6806 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 6807 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 6808 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6809 </span> 6810 </p> 6811 6812 <p class="item-info">Adds a condition that controls whether this view can display hover effects.</p> 6813 6814</li> 6815 6816 <li class="with-macOS"> 6817 <p> 6818 <a href="https://developer.apple.com/documentation/swiftui/view/importablefromservices(for:action:)">.importableFromServices()</a> 6819 6820 6821 6822 <span class="os-list">
6823 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6824 </span> 6825 </p> 6826 6827 <p class="item-info">Enables importing items from services, such as Continuity Camera on macOS.</p> 6828 6829</li> 6830 6831 <li class="with-macOS"> 6832 <p> 6833 <a href="https://developer.apple.com/documentation/swiftui/view/importsitemproviders(_:onimport:)">.importsItemProviders()</a> 6834 6835 6836 6837 <span class="os-list"> 6838 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 6839 </span> 6840 </p> 6841 6842 <p class="item-info">Enables importing item providers from services, such as Continuity Camera on macOS.</p> 6843 6844</li> 6845 6846 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6847 <p> 6848 <a href="https://developer.apple.com/documentation/swiftui/view/interactionactivitytrackingtag(_:)">.interactionActivityTrackingTag()</a> 6849 6850 6851 6852 <span class="os-list"> 6853 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 6854 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 6855 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 6856 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 6857 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6858 </span> 6859 </p> 6860 6861 <p class="item-info">Sets a tag that you use for tracking interactivity.</p> 6862 6863</li> 6864 6865 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6866 <p> 6867 <a href="https://developer.apple.com/documentation/swiftui/view/itemprovider(_:)">.itemProvider()</a> 6868 6869 6870 6871 <span class="os-list"> 6872 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6873 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6874 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6875 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6876 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6877 </span> 6878 </p> 6879 6880 <p class="item-info">Provides a closure that vends the drag representation to be used for a particular data element.</p> 6881 6882</li> 6883 6884 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 6885 <p> 6886 <a href="https://developer.apple.com/documentation/swiftui/view/keyboardshortcut(_:)-8liec">.keyboardShortcut()</a> 6887 6888 6889 6890 <span class="os-list"> 6891 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 6892 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 6893 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6894 </span> 6895 </p> 6896 6897 <p class="item-info">Assigns a keyboard shortcut to the modified control.</p> 6898 6899</li> 6900 6901 <li class="with-xrOS"> 6902 <p> 6903 <a href="https://developer.apple.com/documentation/swiftui/view/listrowhovereffect(_:)">.listRowHoverEffect()</a> 6904 6905 6906 6907 <span class="os-list"> 6908 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6909 </span> 6910 </p> 6911 6912 <p class="item-info">Requests that the containing list row use the provided hover effect.</p> 6913 6914</li> 6915 6916 <li class="with-xrOS"> 6917 <p> 6918 <a href="https://developer.apple.com/documentation/swiftui/view/listrowhovereffectdisabled(_:)">.listRowHoverEffectDisabled()</a> 6919 6920 6921 6922 <span class="os-list"> 6923 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6924 </span> 6925 </p> 6926 6927 <p class="item-info">Requests that the containing list row have its hover effect disabled.</p> 6928 6929</li> 6930 6931 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6932 <p> 6933 <a href="https://developer.apple.com/documentation/swiftui/view/movedisabled(_:)">.moveDisabled()</a> 6934 6935 6936 6937 <span class="os-list"> 6938 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6939 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6940 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6941 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6942 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6943 </span> 6944 </p> 6945 6946 <p class="item-info">Adds a condition for whether the viewâs view hierarchy is movable.</p> 6947 6948</li> 6949 6950 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6951 <p> 6952 <a href="https://developer.apple.com/documentation/swiftui/view/onappear(perform:)">.onAppear()</a> 6953 6954 6955 6956 <span class="os-list">
6957 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 6958 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6959 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 6960 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 6961 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6962 </span> 6963 </p> 6964 6965 <p class="item-info">Adds an action to perform before this view appears.</p> 6966 6967</li> 6968 6969 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 6970 <p> 6971 <a href="https://developer.apple.com/documentation/swiftui/view/onchange(of:initial:_:)-8wgw9">.onChange()</a> 6972 6973 6974 6975 <span class="os-list"> 6976 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 6977 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 6978 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 6979 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 6980 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 6981 </span> 6982 </p> 6983 6984 <p class="item-info">Adds a modifier for this view that fires an action when a specific value changes.</p> 6985 6986</li> 6987 6988 <li class="with-macOS"> 6989 <p> 6990 <a href="https://developer.apple.com/documentation/swiftui/view/oncommand(_:perform:)">.onCommand()</a> 6991 6992 6993 6994 <span class="os-list"> 6995 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 6996 </span> 6997 </p> 6998 6999 <p class="item-info">Adds an action to perform in response to the given selector.</p> 7000 7001</li> 7002 7003 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7004 <p> 7005 <a href="https://developer.apple.com/documentation/swiftui/view/oncontinueuseractivity(_:perform:)">.onContinueUserActivity()</a> 7006 7007 7008 7009 <span class="os-list"> 7010 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 7011 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 7012 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 7013 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 7014 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7015 </span> 7016 </p> 7017 7018 <p class="item-info">Registers a handler to invoke when the view receives the specified activity type for the scene or window the view is in.</p> 7019 7020</li> 7021 7022 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 7023 <p> 7024 <a href="https://developer.apple.com/documentation/swiftui/view/oncontinuoushover(coordinatespace:perform:)-4ehfq">.onContinuousHover()</a> 7025 7026 7027 7028 <span class="os-list"> 7029 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 7030 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 7031 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 7032 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7033 </span> 7034 </p> 7035 7036 <p class="item-info">Adds an action to perform when the pointer enters, moves within, and exits the viewâs bounds.</p> 7037 7038</li> 7039 7040 <li class="with-macOS"> 7041 <p> 7042 <a href="https://developer.apple.com/documentation/swiftui/view/oncopycommand(perform:)">.onCopyCommand()</a> 7043 7044 7045 7046 <span class="os-list"> 7047 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7048 </span> 7049 </p> 7050 7051 <p class="item-info">Adds an action to perform in response to the systemâs Copy command.</p> 7052 7053</li> 7054 7055 <li class="with-macOS"> 7056 <p> 7057 <a href="https://developer.apple.com/documentation/swiftui/view/oncutcommand(perform:)">.onCutCommand()</a> 7058 7059 7060 7061 <span class="os-list"> 7062 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7063 </span> 7064 </p> 7065 7066 <p class="item-info">Adds an action to perform in response to the systemâs Cut command.</p> 7067 7068</li> 7069 7070 <li class="with-macOS"> 7071 <p> 7072 <a href="https://developer.apple.com/documentation/swiftui/view/ondeletecommand(perform:)">.onDeleteCommand()</a> 7073 7074 7075 7076 <span class="os-list"> 7077 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7078 </span> 7079 </p> 7080 7081 <p class="item-info">Adds an action to perform in response to the systemâs Delete command, or pressing either the â« (backspace) or ⦠(forward delete) keys while the view has focus.</p> 7082 7083</li> 7084 7085 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7086 <p> 7087 <a href="https://developer.apple.com/documentation/swiftui/view/ondisappear(perform:)">.onDisappear()</a> 7088 7089 7090 7091 <span class="os-list">
7092 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 7093 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7094 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 7095 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 7096 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7097 </span> 7098 </p> 7099 7100 <p class="item-info">Adds an action to perform after this view disappears.</p> 7101 7102</li> 7103 7104 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 7105 <p> 7106 <a href="https://developer.apple.com/documentation/swiftui/view/ondrag(_:)">.onDrag()</a> 7107 7108 7109 7110 <span class="os-list"> 7111 <span class="tag iOS" data-version="13.4">iOS 13.4</span> 7112 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7113 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7114 </span> 7115 </p> 7116 7117 <p class="item-info">Activates this view as the source of a drag and drop operation.</p> 7118 7119</li> 7120 7121 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 7122 <p> 7123 <a href="https://developer.apple.com/documentation/swiftui/view/ondrop(of:delegate:)-6lin8">.onDrop()</a> 7124 7125 7126 7127 <span class="os-list"> 7128 <span class="tag iOS" data-version="13.4">iOS 13.4</span> 7129 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7130 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7131 </span> 7132 </p> 7133 7134 <p class="item-info">Defines the destination of a drag and drop operation using behavior controlled by the delegate that you provide.</p> 7135 7136</li> 7137 7138 <li class="with-macOS with-tvOS"> 7139 <p> 7140 <a href="https://developer.apple.com/documentation/swiftui/view/onexitcommand(perform:)">.onExitCommand()</a> 7141 7142 7143 7144 <span class="os-list"> 7145 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7146 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 7147 </span> 7148 </p> 7149 7150 <p class="item-info">Sets up an action that triggers in response to receiving the exit command while the view has focus.</p> 7151 7152</li> 7153 7154 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 7155 <p> 7156 <a href="https://developer.apple.com/documentation/swiftui/view/onhover(perform:)">.onHover()</a> 7157 7158 7159 7160 <span class="os-list"> 7161 <span class="tag iOS" data-version="13.4">iOS 13.4</span> 7162 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7163 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7164 </span> 7165 </p> 7166 7167 <p class="item-info">Adds an action to perform when the user moves the pointer over or away from the viewâs frame.</p> 7168 7169</li> 7170 7171 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 7172 <p> 7173 <a href="https://developer.apple.com/documentation/swiftui/view/onkeypress(_:action:)">.onKeyPress()</a> 7174 7175 7176 7177 <span class="os-list"> 7178 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7179 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7180 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7181 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7182 </span> 7183 </p> 7184 7185 <p class="item-info">Performs an action if the user presses a key on a hardware keyboard while the view has focus.</p> 7186 7187</li> 7188 7189 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7190 <p> 7191 <a href="https://developer.apple.com/documentation/swiftui/view/onlongpressgesture(minimumduration:maximumdistance:perform:onpressingchanged:)">.onLongPressGesture()</a> 7192 7193 7194 7195 <span class="os-list"> 7196 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 7197 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7198 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 7199 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 7200 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7201 </span> 7202 </p> 7203 7204 <p class="item-info">Adds an action to perform when this view recognizes a long press gesture.</p> 7205 7206</li> 7207 7208 <li class="with-tvOS"> 7209 <p> 7210 <a href="https://developer.apple.com/documentation/swiftui/view/onlongtouchgesture(minimumduration:perform:ontouchingchanged:)">.onLongTouchGesture()</a> 7211 7212 7213 7214 <span class="os-list">
7215 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 7216 </span> 7217 </p> 7218 7219 <p class="item-info">Adds an action to perform when this view recognizes a remote long touch gesture. A long touch gesture is when the finger is on the remote touch surface without actually pressing.</p> 7220 7221</li> 7222 7223 <li class="with-macOS with-tvOS"> 7224 <p> 7225 <a href="https://developer.apple.com/documentation/swiftui/view/onmovecommand(perform:)">.onMoveCommand()</a> 7226 7227 7228 7229 <span class="os-list"> 7230 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7231 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 7232 </span> 7233 </p> 7234 7235 <p class="item-info">Adds an action to perform in response to a move command, like when the user presses an arrow key on a Mac keyboard, or taps the edge of the Siri Remote when controlling an Apple TV.</p> 7236 7237</li> 7238 7239 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7240 <p> 7241 <a href="https://developer.apple.com/documentation/swiftui/view/onopenurl(perform:)">.onOpenURL()</a> 7242 7243 7244 7245 <span class="os-list"> 7246 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 7247 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 7248 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 7249 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 7250 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7251 </span> 7252 </p> 7253 7254 <p class="item-info">Registers a handler to invoke when the view receives a url for the scene or window the view is in.</p> 7255 7256</li> 7257 7258 <li class="with-macOS"> 7259 <p> 7260 <a href="https://developer.apple.com/documentation/swiftui/view/onpastecommand(of:perform:)-9s227">.onPasteCommand()</a> 7261 7262 7263 7264 <span class="os-list"> 7265 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7266 </span> 7267 </p> 7268 7269 <p class="item-info">Adds an action to perform in response to the systemâs Paste command.</p> 7270 7271</li> 7272 7273 <li class="with-tvOS"> 7274 <p> 7275 <a href="https://developer.apple.com/documentation/swiftui/view/onplaypausecommand(perform:)">.onPlayPauseCommand()</a> 7276 7277 7278 7279 <span class="os-list"> 7280 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 7281 </span> 7282 </p> 7283 7284 <p class="item-info">Adds an action to perform in response to the systemâs Play/Pause command.</p> 7285 7286</li> 7287 7288 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7289 <p> 7290 <a href="https://developer.apple.com/documentation/swiftui/view/onreceive(_:perform:)">.onReceive()</a> 7291 7292 7293 7294 <span class="os-list"> 7295 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 7296 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7297 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 7298 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 7299 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7300 </span> 7301 </p> 7302 7303 <p class="item-info">Adds an action to perform when this view detects data emitted by the given publisher.</p> 7304 7305</li> 7306 7307 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7308 <p> 7309 <a href="https://developer.apple.com/documentation/swiftui/view/onsubmit(of:_:)">.onSubmit()</a> 7310 7311 7312 7313 <span class="os-list"> 7314 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 7315 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 7316 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 7317 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 7318 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7319 </span> 7320 </p> 7321 7322 <p class="item-info">Adds an action to perform when the user submits a value to this view.</p> 7323 7324</li> 7325 7326 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7327 <p> 7328 <a href="https://developer.apple.com/documentation/swiftui/view/ontapgesture(count:perform:)">.onTapGesture()</a> 7329 7330 7331 7332 <span class="os-list">
7333 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 7334 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7335 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 7336 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 7337 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7338 </span> 7339 </p> 7340 7341 <p class="item-info">Adds an action to perform when this view recognizes a tap gesture.</p> 7342 7343</li> 7344 7345 <li class="with-tvOS"> 7346 <p> 7347 <a href="https://developer.apple.com/documentation/swiftui/view/pagecommand(value:in:step:)">.pageCommand()</a> 7348 7349 7350 7351 <span class="os-list"> 7352 <span class="tag tvOS" data-version="14.3">tvOS 14.3</span> 7353 </span> 7354 </p> 7355 7356 <p class="item-info">Steps a value through a range in response to page up or page down commands.</p> 7357 7358</li> 7359 7360 <li class="with-macOS"> 7361 <p> 7362 <a href="https://developer.apple.com/documentation/swiftui/view/pastedestination(for:action:validator:)">.pasteDestination()</a> 7363 7364 7365 7366 <span class="os-list"> 7367 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 7368 </span> 7369 </p> 7370 7371 <p class="item-info">Specifies an action that adds validated items to a view in response to the systemâs Paste command.</p> 7372 7373</li> 7374 7375 <li class="with-macOS with-watchOS with-tvOS"> 7376 <p> 7377 <a href="https://developer.apple.com/documentation/swiftui/view/prefersdefaultfocus(_:in:)">.prefersDefaultFocus()</a> 7378 7379 7380 7381 <span class="os-list"> 7382 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 7383 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 7384 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 7385 </span> 7386 </p> 7387 7388 <p class="item-info">Indicates that the view should receive focus by default for a given namespace.</p> 7389 7390</li> 7391 7392 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7393 <p> 7394 <a href="https://developer.apple.com/documentation/swiftui/view/refreshable(action:)">.refreshable()</a> 7395 7396 7397 7398 <span class="os-list"> 7399 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 7400 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 7401 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 7402 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 7403 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7404 </span> 7405 </p> 7406 7407 <p class="item-info">Marks this view as refreshable.</p> 7408 7409</li> 7410 7411 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7412 <p> 7413 <a href="https://developer.apple.com/documentation/swiftui/view/renameaction(_:)-6lghl">.renameAction()</a> 7414 7415 7416 7417 <span class="os-list"> 7418 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 7419 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 7420 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 7421 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 7422 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7423 </span> 7424 </p> 7425 7426 <p class="item-info">Sets a closure to run for the rename action.</p> 7427 7428</li> 7429 7430 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7431 <p> 7432 <a href="https://developer.apple.com/documentation/swiftui/view/scrollposition(id:)">.scrollPosition()</a> 7433 7434 7435 7436 <span class="os-list"> 7437 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7438 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7439 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7440 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7441 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7442 </span> 7443 </p> 7444 7445 <p class="item-info">Associates a binding to be updated when a scroll view within this view scrolls.</p> 7446 7447</li> 7448 7449 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7450 <p> 7451 <a href="https://developer.apple.com/documentation/swiftui/view/scrolltarget(isenabled:)">.scrollTarget()</a> 7452 7453 7454 7455 <span class="os-list">
7456 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7457 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7458 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7459 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7460 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7461 </span> 7462 </p> 7463 7464 <p class="item-info">Configures this view as a scroll target.</p> 7465 7466</li> 7467 7468 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7469 <p> 7470 <a href="https://developer.apple.com/documentation/swiftui/view/scrolltargetbehavior(_:)">.scrollTargetBehavior()</a> 7471 7472 7473 7474 <span class="os-list"> 7475 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7476 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7477 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7478 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7479 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7480 </span> 7481 </p> 7482 7483 <p class="item-info">Sets the scroll behavior of views scrollable in the provided axes.</p> 7484 7485</li> 7486 7487 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7488 <p> 7489 <a href="https://developer.apple.com/documentation/swiftui/view/scrolltargetlayout(isenabled:)">.scrollTargetLayout()</a> 7490 7491 7492 7493 <span class="os-list"> 7494 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7495 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7496 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7497 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7498 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7499 </span> 7500 </p> 7501 7502 <p class="item-info">Configures the outermost layout as a scroll target layout.</p> 7503 7504</li> 7505 7506 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7507 <p> 7508 <a href="https://developer.apple.com/documentation/swiftui/view/scrolltransition(_:axis:transition:)">.scrollTransition()</a> 7509 7510 7511 7512 <span class="os-list"> 7513 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7514 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7515 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7516 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7517 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7518 </span> 7519 </p> 7520 7521 <p class="item-info">Applies the given transition, animating between the phases of the transition as this view appears and disappears within the visible region of the containing scroll view, or other container specified using the coordinateSpace parameter.</p> 7522 7523</li> 7524 7525 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7526 <p> 7527 <a href="https://developer.apple.com/documentation/swiftui/view/selectiondisabled(_:)">.selectionDisabled()</a> 7528 7529 7530 7531 <span class="os-list"> 7532 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7533 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7534 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7535 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7536 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7537 </span> 7538 </p> 7539 7540 <p class="item-info">Adds a condition that controls whether users can select this view.</p> 7541 7542</li> 7543 7544 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7545 <p> 7546 <a href="https://developer.apple.com/documentation/swiftui/view/simultaneousgesture(_:including:)">.simultaneousGesture()</a> 7547 7548 7549 7550 <span class="os-list"> 7551 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 7552 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 7553 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 7554 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span>
7555 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7556 </span> 7557 </p> 7558 7559 <p class="item-info">Attaches a gesture to the view to process simultaneously with gestures defined by the view.</p> 7560 7561</li> 7562 7563 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7564 <p> 7565 <a href="https://developer.apple.com/documentation/swiftui/view/springloadingbehavior(_:)">.springLoadingBehavior()</a> 7566 7567 7568 7569 <span class="os-list"> 7570 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7571 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7572 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7573 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7574 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7575 </span> 7576 </p> 7577 7578 <p class="item-info">Sets the spring loading behavior this view.</p> 7579 7580</li> 7581 7582 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7583 <p> 7584 <a href="https://developer.apple.com/documentation/swiftui/view/submitlabel(_:)">.submitLabel()</a> 7585 7586 7587 7588 <span class="os-list"> 7589 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 7590 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 7591 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 7592 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 7593 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7594 </span> 7595 </p> 7596 7597 <p class="item-info">Sets the submit label for this view.</p> 7598 7599</li> 7600 7601 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7602 <p> 7603 <a href="https://developer.apple.com/documentation/swiftui/view/submitscope(_:)">.submitScope()</a> 7604 7605 7606 7607 <span class="os-list"> 7608 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 7609 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 7610 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 7611 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 7612 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7613 </span> 7614 </p> 7615 7616 <p class="item-info">Prevents submission triggers originating from this view to invoke a submission action configured by a submission modifier higher up in the view hierarchy.</p> 7617 7618</li> 7619 7620 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 7621 <p> 7622 <a href="https://developer.apple.com/documentation/swiftui/view/swipeactions(edge:allowsfullswipe:content:)">.swipeActions()</a> 7623 7624 7625 7626 <span class="os-list"> 7627 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 7628 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 7629 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 7630 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7631 </span> 7632 </p> 7633 7634 <p class="item-info">Adds custom swipe actions to a row in a list.</p> 7635 7636</li> 7637 7638 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7639 <p> 7640 <a href="https://developer.apple.com/documentation/swiftui/view/task(priority:_:)">.task()</a> 7641 7642 7643 7644 <span class="os-list"> 7645 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 7646 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 7647 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 7648 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 7649 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7650 </span> 7651 </p> 7652 7653 <p class="item-info">Adds an asynchronous task to perform before this view appears.</p> 7654 7655</li> 7656 7657 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 7658 <p> 7659 <a href="https://developer.apple.com/documentation/swiftui/view/useractivity(_:element:_:)">.userActivity()</a> 7660 7661 7662 7663 <span class="os-list"> 7664 <span class="tag iOS" data-version="14.0">iOS 14.0</span>
7665 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 7666 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 7667 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 7668 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7669 </span> 7670 </p> 7671 7672 <p class="item-info">Advertises a user activity type.</p> 7673 7674</li> 7675 7676 </ul> 7677 </div> 7678 7679 <div class="section with-iOS with-xrOS with-macOS with-watchOS with-tvOS"> 7680 <h4>Integrating Other Frameworks</h4> 7681 7682 <ul> 7683 <li class="empty"></li> 7684 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 7685 <p> 7686 <a href="https://developer.apple.com/documentation/swiftui/view/activitybackgroundtint(_:)">.activityBackgroundTint()</a> 7687 7688 <span class="tag">WidgetKit</span> 7689 7690 7691 <span class="os-list"> 7692 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 7693 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7694 </span> 7695 </p> 7696 7697 <p class="item-info">Sets the tint color for the background of a Live Activity that appears on the Lock Screen.</p> 7698 7699</li> 7700 7701 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 7702 <p> 7703 <a href="https://developer.apple.com/documentation/swiftui/view/activitysystemactionforegroundcolor(_:)">.activitySystemActionForegroundColor()</a> 7704 7705 <span class="tag">WidgetKit</span> 7706 7707 7708 <span class="os-list"> 7709 <span class="tag iOS" data-version="16.1">iOS 16.1</span> 7710 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7711 </span> 7712 </p> 7713 7714 <p class="item-info">The text color for the auxiliary action button that the system shows next to a Live Activity on the Lock Screen.</p> 7715 7716</li> 7717 7718 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 7719 <p> 7720 <a href="https://developer.apple.com/documentation/swiftui/view/appstoreoverlay(ispresented:configuration:)">.appStoreOverlay()</a> 7721 7722 <span class="tag">StoreKit</span> 7723 7724 7725 <span class="os-list"> 7726 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 7727 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7728 </span> 7729 </p> 7730 7731 <p class="item-info">Presents a StoreKit overlay when a given condition is true.</p> 7732 7733</li> 7734 7735 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 7736 <p> 7737 <a href="https://developer.apple.com/documentation/swiftui/view/currententitlementtask(for:priority:action:)">.currentEntitlementTask()</a> 7738 7739 <span class="tag">StoreKit</span> 7740 7741 7742 <span class="os-list"> 7743 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7744 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7745 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7746 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7747 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7748 </span> 7749 </p> 7750 7751 <p class="item-info">Declares the view as dependent on the entitlement of an in-app purchase product for productID and returns a modified view.</p> 7752 7753</li> 7754 7755 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 7756 <p> 7757 <a href="https://developer.apple.com/documentation/swiftui/view/dynamicisland(verticalplacement:)">.dynamicIsland()</a> 7758 7759 <span class="tag">WidgetKit</span> 7760 7761 7762 <span class="os-list"> 7763 <span class="tag iOS" data-version="16.1">iOS 16.1</span> 7764 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7765 </span> 7766 </p> 7767 7768 <p class="item-info">Specifies the vertical placement for a view of an expanded Live Activity that appears in the Dynamic Island.</p> 7769 7770</li> 7771 7772 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 7773 <p> 7774 <a href="https://developer.apple.com/documentation/swiftui/view/familyactivitypicker(ispresented:selection:)">.familyActivityPicker()</a> 7775 7776 <span class="tag">FamilyControls</span> 7777 7778 7779 <span class="os-list"> 7780 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 7781 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7782 </span> 7783 </p> 7784 7785 <p class="item-info">
7785Presents an activity picker view as a sheet.</p> 7786 7787</li> 7788 7789 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 7790 <p> 7791 <a href="https://developer.apple.com/documentation/swiftui/view/healthdataaccessrequest(store:sharetypes:readtypes:trigger:completion:)">.healthDataAccessRequest()</a> 7792 7793 <span class="tag">HealthKit</span> 7794 7795 7796 <span class="os-list"> 7797 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7798 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7799 </span> 7800 </p> 7801 7802 <p class="item-info">Requests authorization to read and share the given HealthKit types.</p> 7803 7804</li> 7805 7806 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 7807 <p> 7808 <a href="https://developer.apple.com/documentation/swiftui/view/inapppurchaseoptions(_:)">.inAppPurchaseOptions()</a> 7809 7810 <span class="tag">StoreKit</span> 7811 7812 7813 <span class="os-list"> 7814 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7815 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7816 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7817 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7818 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7819 </span> 7820 </p> 7821 7822 <p class="item-info">Add a function to call before initiating a purchase from an in-app store within view, providing a set of options for the purchase.</p> 7823 7824</li> 7825 7826 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 7827 <p> 7828 <a href="https://developer.apple.com/documentation/swiftui/view/managesubscriptionssheet(ispresented:)">.manageSubscriptionsSheet()</a> 7829 7830 <span class="tag">StoreKit</span> 7831 7832 7833 <span class="os-list"> 7834 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 7835 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7836 </span> 7837 </p> 7838 7839 7840</li> 7841 7842 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS"> 7843 <p> 7844 <a href="https://developer.apple.com/documentation/swiftui/view/modelcontainer(_:)">.modelContainer()</a> 7845 7846 <span class="tag">SwiftData</span> 7847 7848 7849 <span class="os-list"> 7850 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7851 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7852 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7853 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7854 </span> 7855 </p> 7856 7857 <p class="item-info">Sets the model container and associated model context in this viewâs environment.</p> 7858 7859</li> 7860 7861 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS"> 7862 <p> 7863 <a href="https://developer.apple.com/documentation/swiftui/view/modelcontext(_:)">.modelContext()</a> 7864 7865 <span class="tag">SwiftData</span> 7866 7867 7868 <span class="os-list"> 7869 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7870 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7871 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7872 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7873 </span> 7874 </p> 7875 7876 <p class="item-info">Sets the model context in this viewâs environment.</p> 7877 7878</li> 7879 7880 <li class="with-iOS with-iPadOS with-macOS with-Catalyst"> 7881 <p> 7882 <a href="https://developer.apple.com/documentation/swiftui/view/musicsubscriptionoffer(ispresented:options:onloadcompletion:)">.musicSubscriptionOffer()</a> 7883 7884 <span class="tag">MusicKit</span> 7885 7886 7887 <span class="os-list"> 7888 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 7889 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 7890 </span> 7891 </p> 7892 7893 <p class="item-info">Initiates the process of presenting a sheet with subscription offers for Apple Music when the isPresented binding is true.</p> 7894 7895</li> 7896 7897 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 7898 <p> 7899 <a href="https://developer.apple.com/documentation/swiftui/view/offercoderedemption(ispresented:oncompletion:)">.offerCodeRedemption()</a> 7900
7901 <span class="tag">StoreKit</span> 7902 7903 7904 <span class="os-list"> 7905 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 7906 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7907 </span> 7908 </p> 7909 7910 <p class="item-info">Presents a sheet that enables users to redeem subscription offer codes that you configure in App Store Connect.</p> 7911 7912</li> 7913 7914 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 7915 <p> 7916 <a href="https://developer.apple.com/documentation/swiftui/view/oninapppurchasecompletion(perform:)">.onInAppPurchaseCompletion()</a> 7917 7918 <span class="tag">StoreKit</span> 7919 7920 7921 <span class="os-list"> 7922 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7923 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7924 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7925 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7926 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7927 </span> 7928 </p> 7929 7930 <p class="item-info">Add an action to perform when a purchase initiated from an in-app store within this view completes.</p> 7931 7932</li> 7933 7934 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 7935 <p> 7936 <a href="https://developer.apple.com/documentation/swiftui/view/oninapppurchasestart(perform:)">.onInAppPurchaseStart()</a> 7937 7938 <span class="tag">StoreKit</span> 7939 7940 7941 <span class="os-list"> 7942 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7943 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7944 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 7945 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 7946 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 7947 </span> 7948 </p> 7949 7950 <p class="item-info">Add an action to perform when a user triggers the purchase button on an in-app store within this view.</p> 7951 7952</li> 7953 7954 <li class="with-iOS with-iPadOS with-macOS with-watchOS"> 7955 <p> 7956 <a href="https://developer.apple.com/documentation/swiftui/view/photospicker(ispresented:selection:matching:preferreditemencoding:)">.photosPicker()</a> 7957 7958 <span class="tag">Photos</span> 7959 7960 7961 <span class="os-list"> 7962 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 7963 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 7964 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 7965 </span> 7966 </p> 7967 7968 <p class="item-info">Presents a Photos picker that selects a PhotosPickerItem.</p> 7969 7970</li> 7971 7972 <li class="with-iOS with-iPadOS with-macOS"> 7973 <p> 7974 <a href="https://developer.apple.com/documentation/swiftui/view/photospickeraccessoryvisibility(_:edges:)">.photosPickerAccessoryVisibility()</a> 7975 7976 <span class="tag">Photos</span> 7977 7978 7979 <span class="os-list"> 7980 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7981 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7982 </span> 7983 </p> 7984 7985 <p class="item-info">Sets the accessory visibility of the Photos picker. Accessories include anything between the content and the edge, like the navigation bar or the sidebar.</p> 7986 7987</li> 7988 7989 <li class="with-iOS with-iPadOS with-macOS"> 7990 <p> 7991 <a href="https://developer.apple.com/documentation/swiftui/view/photospickerdisabledcapabilities(_:)">.photosPickerDisabledCapabilities()</a> 7992 7993 <span class="tag">Photos</span> 7994 7995 7996 <span class="os-list"> 7997 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 7998 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 7999 </span> 8000 </p> 8001 8002 <p class="item-info">Disables capabilities of the Photos picker.</p> 8003 8004</li> 8005 8006 <li class="with-iOS with-iPadOS with-macOS"> 8007 <p> 8008 <a href="https://developer.apple.com/documentation/swiftui/view/photospickerstyle(_:)">.photosPickerStyle()</a> 8009 8010 <span class="tag">Photos</span> 8011 8012 8013 <span class="os-list"> 8014 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8015 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8016 </span> 8017 </p> 8018 8019 <p class="item-info">Sets the mode of the Photos picker.</p> 8020 8021</li> 8022 8023 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8024 <p> 8025 <a href="https://developer.apple.com/documentation/swiftui/view/productviewstyle(_:)">.productViewStyle()</a> 8026
8027 <span class="tag">StoreKit</span> 8028 8029 8030 <span class="os-list"> 8031 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8032 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8033 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8034 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8035 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8036 </span> 8037 </p> 8038 8039 <p class="item-info">Sets the style for in-app store products within a view.</p> 8040 8041</li> 8042 8043 <li class="with-iOS with-iPadOS with-macOS with-Catalyst"> 8044 <p> 8045 <a href="https://developer.apple.com/documentation/swiftui/view/quicklookpreview(_:)">.quickLookPreview()</a> 8046 8047 <span class="tag">QuickLook</span> 8048 8049 8050 <span class="os-list"> 8051 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 8052 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 8053 </span> 8054 </p> 8055 8056 <p class="item-info">Presents a Quick Look preview of the contents of a single URL.</p> 8057 8058</li> 8059 8060 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 8061 <p> 8062 <a href="https://developer.apple.com/documentation/swiftui/view/refundrequestsheet(for:ispresented:ondismiss:)">.refundRequestSheet()</a> 8063 8064 <span class="tag">StoreKit</span> 8065 8066 8067 <span class="os-list"> 8068 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 8069 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8070 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8071 </span> 8072 </p> 8073 8074 <p class="item-info">Display the refund request sheet for the given transaction.</p> 8075 8076</li> 8077 8078 <li class="with-iOS with-iPadOS"> 8079 <p> 8080 <a href="https://developer.apple.com/documentation/swiftui/view/shortcutslinkstyle(_:)">.shortcutsLinkStyle()</a> 8081 8082 <span class="tag">AppIntents</span> 8083 8084 8085 <span class="os-list"> 8086 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 8087 </span> 8088 </p> 8089 8090 <p class="item-info">Sets the given style for ShortcutsLinks within the view hierarchy</p> 8091 8092</li> 8093 8094 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS"> 8095 <p> 8096 <a href="https://developer.apple.com/documentation/swiftui/view/signinwithapplebuttonstyle(_:)">.signInWithAppleButtonStyle()</a> 8097 8098 <span class="tag">AuthenticationServices</span> 8099 8100 8101 <span class="os-list"> 8102 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 8103 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 8104 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 8105 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 8106 </span> 8107 </p> 8108 8109 <p class="item-info">Sets the style used for displaying the control (see SignInWithAppleButton.Style).</p> 8110 8111</li> 8112 8113 <li class="with-iOS with-iPadOS"> 8114 <p> 8115 <a href="https://developer.apple.com/documentation/swiftui/view/siritipviewstyle(_:)">.siriTipViewStyle()</a> 8116 8117 <span class="tag">AppIntents</span> 8118 8119 8120 <span class="os-list"> 8121 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 8122 </span> 8123 </p> 8124 8125 <p class="item-info">Sets the given style for SiriTipView within the view hierarchy</p> 8126 8127</li> 8128 8129 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8130 <p> 8131 <a href="https://developer.apple.com/documentation/swiftui/view/storebutton(_:for:)">.storeButton()</a> 8132 8133 <span class="tag">StoreKit</span> 8134 8135 8136 <span class="os-list"> 8137 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8138 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8139 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8140 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8141 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8142 </span> 8143 </p> 8144 8145 <p class="item-info">Specifies the visibility of certain kinds of auxiliary buttons used by StoreView or SubscriptionStoreView instances within the view.</p> 8146 8147</li> 8148 8149 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8150 <p> 8151 <a href="https://developer.apple.com/documentation/swiftui/view/storeproductstask(for:priority:action:)">.storeProductsTask()</a> 8152
8153 <span class="tag">StoreKit</span> 8154 8155 8156 <span class="os-list"> 8157 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8158 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8159 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8160 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8161 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8162 </span> 8163 </p> 8164 8165 <p class="item-info">Declares the view as dependent on a collection of in-app purchase products and returns a modified view.</p> 8166 8167</li> 8168 8169 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8170 <p> 8171 <a href="https://developer.apple.com/documentation/swiftui/view/storeproducttask(for:priority:action:)">.storeProductTask()</a> 8172 8173 <span class="tag">StoreKit</span> 8174 8175 8176 <span class="os-list"> 8177 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8178 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8179 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8180 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8181 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8182 </span> 8183 </p> 8184 8185 <p class="item-info">Declares the view as dependent on the in-app purchase product for id and returns a modified view.</p> 8186 8187</li> 8188 8189 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8190 <p> 8191 <a href="https://developer.apple.com/documentation/swiftui/view/subscriptionstatustask(for:priority:action:)">.subscriptionStatusTask()</a> 8192 8193 <span class="tag">StoreKit</span> 8194 8195 8196 <span class="os-list"> 8197 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8198 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8199 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8200 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8201 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8202 </span> 8203 </p> 8204 8205 <p class="item-info">Declares the view as dependent on the status of an auto-renewable subscription group for groupID and returns a modified view.</p> 8206 8207</li> 8208 8209 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-xrOS"> 8210 <p> 8211 <a href="https://developer.apple.com/documentation/swiftui/view/subscriptionstorebuttonlabel(_:)">.subscriptionStoreButtonLabel()</a> 8212 8213 <span class="tag">StoreKit</span> 8214 8215 8216 <span class="os-list"> 8217 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8218 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8219 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8220 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8221 </span> 8222 </p> 8223 8224 <p class="item-info">Configures in-app subscription store instances within a view to use a certain button label.</p> 8225 8226</li> 8227 8228 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8229 <p> 8230 <a href="https://developer.apple.com/documentation/swiftui/view/subscriptionstorecontrolicon(icon:)">.subscriptionStoreControlIcon()</a> 8231 8232 <span class="tag">StoreKit</span> 8233 8234 8235 <span class="os-list"> 8236 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8237 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8238 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8239 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8240 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8241 </span> 8242 </p> 8243 8244 <p class="item-info">Set a view to use to decorate individual subscription options within a SubscriptionStoreView.</p> 8245 8246</li> 8247 8248 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8249 <p> 8250 <a href="https://developer.apple.com/documentation/swiftui/view/subscriptionstorecontrolstyle(_:)">.subscriptionStoreControlStyle()</a> 8251 8252 <span class="tag">StoreKit</span> 8253 8254 8255 <span class="os-list"> 8256 <span class="tag iOS" data-version="17.0">iOS 17.0</span>
8257 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8258 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8259 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8260 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8261 </span> 8262 </p> 8263 8264 <p class="item-info">Sets the control style for in-app subscription stores within a view.</p> 8265 8266</li> 8267 8268 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-xrOS"> 8269 <p> 8270 <a href="https://developer.apple.com/documentation/swiftui/view/subscriptionstorepickeritembackground(_:)">.subscriptionStorePickerItemBackground()</a> 8271 8272 <span class="tag">StoreKit</span> 8273 8274 8275 <span class="os-list"> 8276 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8277 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8278 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8279 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8280 </span> 8281 </p> 8282 8283 <p class="item-info">Sets the background style for picker items of SubscriptionStoreView instances within this view.</p> 8284 8285</li> 8286 8287 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8288 <p> 8289 <a href="https://developer.apple.com/documentation/swiftui/view/subscriptionstorepolicydestination(for:destination:)">.subscriptionStorePolicyDestination()</a> 8290 8291 <span class="tag">StoreKit</span> 8292 8293 8294 <span class="os-list"> 8295 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8296 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8297 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8298 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8299 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8300 </span> 8301 </p> 8302 8303 <p class="item-info">Configures a view as the destination when someone chooses to view the corresponding policy in a SubscriptionStoreView within this view.</p> 8304 8305</li> 8306 8307 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8308 <p> 8309 <a href="https://developer.apple.com/documentation/swiftui/view/subscriptionstorepolicyforegroundstyle(_:)">.subscriptionStorePolicyForegroundStyle()</a> 8310 8311 <span class="tag">StoreKit</span> 8312 8313 8314 <span class="os-list"> 8315 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8316 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8317 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8318 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8319 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8320 </span> 8321 </p> 8322 8323 <p class="item-info">Sets the style for terms of service or privacy policy buttons created by SubscriptionStoreView within a view.</p> 8324 8325</li> 8326 8327 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS with-xrOS"> 8328 <p> 8329 <a href="https://developer.apple.com/documentation/swiftui/view/subscriptionstoresigninaction(_:)">.subscriptionStoreSignInAction()</a> 8330 8331 <span class="tag">StoreKit</span> 8332 8333 8334 <span class="os-list"> 8335 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8336 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8337 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8338 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8339 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8340 </span> 8341 </p> 8342 8343 <p class="item-info">Add an action to perform when someone triggers the sign in button on a SubscriptionStoreView within this view.</p> 8344 8345</li> 8346 8347 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 8348 <p> 8349 <a href="https://developer.apple.com/documentation/swiftui/view/widgetaccentable(_:)">.widgetAccentable()</a> 8350 8351 <span class="tag">WidgetKit</span> 8352 8353 8354 <span class="os-list"> 8355 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 8356 <span class="tag macOS" data-version="13.0">macOS 13.0</span>
8357 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 8358 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8359 </span> 8360 </p> 8361 8362 <p class="item-info">Adds the view and all of its subviews to the accented group.</p> 8363 8364</li> 8365 8366 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-xrOS"> 8367 <p> 8368 <a href="https://developer.apple.com/documentation/swiftui/view/widgetcurvescontent(_:)">.widgetCurvesContent()</a> 8369 8370 <span class="tag">WidgetKit</span> 8371 8372 8373 <span class="os-list"> 8374 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8375 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8376 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8377 </span> 8378 </p> 8379 8380 <p class="item-info">Displays the widgetâs content along a curve if the context allows it.</p> 8381 8382</li> 8383 8384 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-xrOS"> 8385 <p> 8386 <a href="https://developer.apple.com/documentation/swiftui/view/widgetlabel(_:)-7wguh">.widgetLabel()</a> 8387 8388 <span class="tag">WidgetKit</span> 8389 8390 8391 <span class="os-list"> 8392 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 8393 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 8394 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8395 </span> 8396 </p> 8397 8398 <p class="item-info">Returns a text label that displays additional content outside the accessory family widgetâs main SwiftUI view.</p> 8399 8400</li> 8401 8402 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 8403 <p> 8404 <a href="https://developer.apple.com/documentation/swiftui/view/widgeturl(_:)">.widgetURL()</a> 8405 8406 <span class="tag">WidgetKit</span> 8407 8408 8409 <span class="os-list"> 8410 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 8411 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 8412 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 8413 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8414 </span> 8415 </p> 8416 8417 <p class="item-info">Sets the URL to open in the containing app when the user clicks the widget.</p> 8418 8419</li> 8420 8421 </ul> 8422 </div> 8423 8424 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 8425 <h4>Layout Modifiers</h4> 8426 8427 <ul> 8428 <li class="empty"></li> 8429 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8430 <p> 8431 <a href="https://developer.apple.com/documentation/swiftui/view/alignmentguide(_:computevalue:)-6y3u2">.alignmentGuide()</a> 8432 8433 8434 8435 <span class="os-list"> 8436 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8437 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8438 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8439 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8440 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8441 </span> 8442 </p> 8443 8444 <p class="item-info">Sets the viewâs vertical alignment.</p> 8445 8446</li> 8447 8448 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8449 <p> 8450 <a href="https://developer.apple.com/documentation/swiftui/view/containerrelativeframe(_:alignment:)">.containerRelativeFrame()</a> 8451 8452 8453 8454 <span class="os-list"> 8455 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8456 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8457 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8458 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8459 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8460 </span> 8461 </p> 8462 8463 <p class="item-info">Positions this view within an invisible frame with a size relative to the nearest container.</p> 8464 8465</li> 8466 8467 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8468 <p> 8469 <a href="https://developer.apple.com/documentation/swiftui/view/contentmargins(_:for:)">.contentMargins()</a> 8470 8471 8472 8473 <span class="os-list">
8474 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8475 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8476 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8477 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8478 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8479 </span> 8480 </p> 8481 8482 <p class="item-info">Configures the content margin for a provided placement.</p> 8483 8484</li> 8485 8486 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8487 <p> 8488 <a href="https://developer.apple.com/documentation/swiftui/view/coordinatespace(_:)">.coordinateSpace()</a> 8489 8490 8491 8492 <span class="os-list"> 8493 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8494 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8495 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8496 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8497 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8498 </span> 8499 </p> 8500 8501 <p class="item-info">Assigns a name to the viewâs coordinate space, so other code can operate on dimensions like points and sizes relative to the named space.</p> 8502 8503</li> 8504 8505 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8506 <p> 8507 <a href="https://developer.apple.com/documentation/swiftui/view/fixedsize()">.fixedSize()</a> 8508 8509 8510 8511 <span class="os-list"> 8512 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8513 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8514 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8515 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8516 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8517 </span> 8518 </p> 8519 8520 <p class="item-info">Fixes this view at its ideal size.</p> 8521 8522</li> 8523 8524 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8525 <p> 8526 <a href="https://developer.apple.com/documentation/swiftui/view/frame()">.frame()</a> 8527 8528 8529 8530 <span class="os-list"> 8531 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8532 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8533 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8534 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8535 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8536 </span> 8537 </p> 8538 8539 <p class="item-info">Positions this view within an invisible frame.</p> 8540 8541</li> 8542 8543 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8544 <p> 8545 <a href="https://developer.apple.com/documentation/swiftui/view/gridcellanchor(_:)">.gridCellAnchor()</a> 8546 8547 8548 8549 <span class="os-list"> 8550 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 8551 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 8552 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 8553 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 8554 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8555 </span> 8556 </p> 8557 8558 <p class="item-info">Specifies a custom alignment anchor for a view that acts as a grid cell.</p> 8559 8560</li> 8561 8562 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8563 <p> 8564 <a href="https://developer.apple.com/documentation/swiftui/view/gridcellcolumns(_:)">.gridCellColumns()</a> 8565 8566 8567 8568 <span class="os-list"> 8569 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 8570 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 8571 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 8572 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 8573 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8574 </span> 8575 </p> 8576 8577 <p class="item-info">Tells a view that acts as a cell in a grid to span the specified number of columns.</p> 8578 8579</li> 8580 8581 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8582 <p> 8583 <a href="https://developer.apple.com/documentation/swiftui/view/gridcellunsizedaxes(_:)">.gridCellUnsizedAxes()</a> 8584 8585 8586 8587 <span class="os-list">
8588 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 8589 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 8590 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 8591 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 8592 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8593 </span> 8594 </p> 8595 8596 <p class="item-info">Asks grid layouts not to offer the view extra size in the specified axes.</p> 8597 8598</li> 8599 8600 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8601 <p> 8602 <a href="https://developer.apple.com/documentation/swiftui/view/gridcolumnalignment(_:)">.gridColumnAlignment()</a> 8603 8604 8605 8606 <span class="os-list"> 8607 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 8608 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 8609 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 8610 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 8611 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8612 </span> 8613 </p> 8614 8615 <p class="item-info">Overrides the default horizontal alignment of the grid column that the view appears in.</p> 8616 8617</li> 8618 8619 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8620 <p> 8621 <a href="https://developer.apple.com/documentation/swiftui/view/ignoressafearea(_:edges:)">.ignoresSafeArea()</a> 8622 8623 8624 8625 <span class="os-list"> 8626 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 8627 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 8628 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 8629 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 8630 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8631 </span> 8632 </p> 8633 8634 <p class="item-info">Expands the view out of its safe area.</p> 8635 8636</li> 8637 8638 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8639 <p> 8640 <a href="https://developer.apple.com/documentation/swiftui/view/layoutdirectionbehavior(_:)">.layoutDirectionBehavior()</a> 8641 8642 8643 8644 <span class="os-list"> 8645 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8646 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8647 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8648 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8649 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8650 </span> 8651 </p> 8652 8653 <p class="item-info">Sets the behavior of this view for different layout directions.</p> 8654 8655</li> 8656 8657 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8658 <p> 8659 <a href="https://developer.apple.com/documentation/swiftui/view/layoutpriority(_:)">.layoutPriority()</a> 8660 8661 8662 8663 <span class="os-list"> 8664 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8665 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8666 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8667 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8668 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8669 </span> 8670 </p> 8671 8672 <p class="item-info">Sets the priority by which a parent layout should apportion space to this child.</p> 8673 8674</li> 8675 8676 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8677 <p> 8678 <a href="https://developer.apple.com/documentation/swiftui/view/layoutvalue(key:value:)">.layoutValue()</a> 8679 8680 8681 8682 <span class="os-list"> 8683 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 8684 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 8685 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 8686 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 8687 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8688 </span> 8689 </p> 8690 8691 <p class="item-info">Associates a value with a custom layout property.</p> 8692 8693</li> 8694 8695 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8696 <p> 8697 <a href="https://developer.apple.com/documentation/swiftui/view/listrowinsets(_:)">.listRowInsets()</a> 8698 8699 8700 8701 <span class="os-list">
8702 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8703 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8704 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8705 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8706 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8707 </span> 8708 </p> 8709 8710 <p class="item-info">Applies an inset to the rows in a list.</p> 8711 8712</li> 8713 8714 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 8715 <p> 8716 <a href="https://developer.apple.com/documentation/swiftui/view/listrowspacing(_:)">.listRowSpacing()</a> 8717 8718 8719 8720 <span class="os-list"> 8721 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 8722 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8723 </span> 8724 </p> 8725 8726 <p class="item-info">Sets the vertical spacing between two adjacent rows in a List.</p> 8727 8728</li> 8729 8730 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-xrOS"> 8731 <p> 8732 <a href="https://developer.apple.com/documentation/swiftui/view/listsectionspacing(_:)-5t518">.listSectionSpacing()</a> 8733 8734 8735 8736 <span class="os-list"> 8737 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8738 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8739 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8740 </span> 8741 </p> 8742 8743 <p class="item-info">Sets the spacing between adjacent sections in a List.</p> 8744 8745</li> 8746 8747 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8748 <p> 8749 <a href="https://developer.apple.com/documentation/swiftui/view/offset(_:)">.offset()</a> 8750 8751 8752 8753 <span class="os-list"> 8754 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8755 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8756 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8757 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8758 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8759 </span> 8760 </p> 8761 8762 <p class="item-info">Offset this view by the horizontal and vertical amount specified in the offset parameter.</p> 8763 8764</li> 8765 8766 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8767 <p> 8768 <a href="https://developer.apple.com/documentation/swiftui/view/padding(_:)-68shk">.padding()</a> 8769 8770 8771 8772 <span class="os-list"> 8773 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8774 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8775 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8776 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8777 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8778 </span> 8779 </p> 8780 8781 <p class="item-info">Adds a specific padding amount to each edge of this view.</p> 8782 8783</li> 8784 8785 <li class="with-xrOS"> 8786 <p> 8787 <a href="https://developer.apple.com/documentation/swiftui/view/padding3d(_:)-6bex4">.padding3D()</a> 8788 8789 8790 8791 <span class="os-list"> 8792 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8793 </span> 8794 </p> 8795 8796 <p class="item-info">Pads this view using the edge insets you specify.</p> 8797 8798</li> 8799 8800 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8801 <p> 8802 <a href="https://developer.apple.com/documentation/swiftui/view/position(_:)">.position()</a> 8803 8804 8805 8806 <span class="os-list"> 8807 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8808 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8809 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8810 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8811 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8812 </span> 8813 </p> 8814 8815 <p class="item-info">Positions the center of this view at the specified point in its parentâs coordinate space.</p> 8816 8817</li> 8818 8819 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8820 <p> 8821 <a href="https://developer.apple.com/documentation/swiftui/view/safeareainset(edge:alignment:spacing:content:)-6gwby">.safeAreaInset()</a> 8822 8823 8824 8825 <span class="os-list">
8826 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 8827 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 8828 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 8829 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 8830 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8831 </span> 8832 </p> 8833 8834 <p class="item-info">Shows the specified content beside the modified view.</p> 8835 8836</li> 8837 8838 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8839 <p> 8840 <a href="https://developer.apple.com/documentation/swiftui/view/safeareapadding(_:)-6nbmg">.safeAreaPadding()</a> 8841 8842 8843 8844 <span class="os-list"> 8845 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8846 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8847 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8848 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8849 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8850 </span> 8851 </p> 8852 8853 <p class="item-info">Adds the provided insets into the safe area of this view.</p> 8854 8855</li> 8856 8857 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8858 <p> 8859 <a href="https://developer.apple.com/documentation/swiftui/view/scenepadding(_:)">.scenePadding()</a> 8860 8861 8862 8863 <span class="os-list"> 8864 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 8865 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 8866 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 8867 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 8868 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8869 </span> 8870 </p> 8871 8872 <p class="item-info">Adds padding to the specified edges of this view using an amount thatâs appropriate for the current scene.</p> 8873 8874</li> 8875 8876 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8877 <p> 8878 <a href="https://developer.apple.com/documentation/swiftui/view/zindex(_:)">.zIndex()</a> 8879 8880 8881 8882 <span class="os-list"> 8883 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8884 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8885 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8886 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8887 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8888 </span> 8889 </p> 8890 8891 <p class="item-info">Controls the display order of overlapping views.</p> 8892 8893</li> 8894 8895 </ul> 8896 </div> 8897 8898 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 8899 <h4>Presentation Modifiers</h4> 8900 8901 <ul> 8902 <li class="empty"></li> 8903 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8904 <p> 8905 <a href="https://developer.apple.com/documentation/swiftui/view/alert(_:ispresented:actions:)-2gsoj">.alert()</a> 8906 8907 8908 8909 <span class="os-list"> 8910 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 8911 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 8912 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 8913 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 8914 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8915 </span> 8916 </p> 8917 8918 <p class="item-info">Presents an alert when a given condition is true, using a text view for the title.</p> 8919 8920</li> 8921 8922 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8923 <p> 8924 <a href="https://developer.apple.com/documentation/swiftui/view/confirmationdialog(_:ispresented:titlevisibility:actions:)-55h6a">.confirmationDialog()</a> 8925 8926 8927 8928 <span class="os-list"> 8929 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 8930 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 8931 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span>
8932 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 8933 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8934 </span> 8935 </p> 8936 8937 <p class="item-info">Presents a confirmation dialog when a given condition is true, using a text view for the title.</p> 8938 8939</li> 8940 8941 <li class="with-macOS with-watchOS with-xrOS"> 8942 <p> 8943 <a href="https://developer.apple.com/documentation/swiftui/view/dialogicon(_:)">.dialogIcon()</a> 8944 8945 8946 8947 <span class="os-list"> 8948 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 8949 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8950 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8951 </span> 8952 </p> 8953 8954 <p class="item-info">Configures the icon used by dialogs within this view.</p> 8955 8956</li> 8957 8958 <li class="with-macOS with-watchOS with-xrOS"> 8959 <p> 8960 <a href="https://developer.apple.com/documentation/swiftui/view/dialogseverity(_:)">.dialogSeverity()</a> 8961 8962 8963 8964 <span class="os-list"> 8965 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 8966 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8967 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8968 </span> 8969 </p> 8970 8971 8972</li> 8973 8974 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8975 <p> 8976 <a href="https://developer.apple.com/documentation/swiftui/view/dialogsuppression(_:issuppressed:)">.dialogSuppression()</a> 8977 8978 8979 8980 <span class="os-list"> 8981 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 8982 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 8983 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 8984 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 8985 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 8986 </span> 8987 </p> 8988 8989 <p class="item-info">Enables user suppression of dialogs and alerts presented within self, with a custom suppression message on macOS. Unused on other platforms.</p> 8990 8991</li> 8992 8993 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 8994 <p> 8995 <a href="https://developer.apple.com/documentation/swiftui/view/dialogsuppressiontoggle(issuppressed:)">.dialogSuppressionToggle()</a> 8996 8997 8998 8999 <span class="os-list"> 9000 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9001 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9002 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 9003 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 9004 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9005 </span> 9006 </p> 9007 9008 <p class="item-info">Enables user suppression of dialogs and alerts presented within self, with a default suppression message on macOS. Unused on other platforms.</p> 9009 9010</li> 9011 9012 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9013 <p> 9014 <a href="https://developer.apple.com/documentation/swiftui/view/filedialogbrowseroptions(_:)">.fileDialogBrowserOptions()</a> 9015 9016 9017 9018 <span class="os-list"> 9019 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9020 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9021 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9022 </span> 9023 </p> 9024 9025 <p class="item-info">On macOS, configures the fileExporter, fileImporter, or fileMover to provide a refined URL search experience: include or exclude hidden files, allow searching by tag, etc.</p> 9026 9027</li> 9028 9029 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9030 <p> 9031 <a href="https://developer.apple.com/documentation/swiftui/view/filedialogconfirmationlabel(_:)-6he2o">.fileDialogConfirmationLabel()</a> 9032 9033 9034 9035 <span class="os-list"> 9036 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9037 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9038 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9039 </span> 9040 </p> 9041 9042 <p class="item-info">On macOS, configures the the fileExporter, fileImporter, or fileMover with a custom confirmation button label.</p> 9043 9044</li> 9045 9046 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9047 <p> 9048 <a href="https://developer.apple.com/documentation/swiftui/view/filedialogcustomizationid(_:)">.fileDialogCustomizationID()</a> 9049 9050 9051 9052 <span class="os-list">
9053 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9054 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9055 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9056 </span> 9057 </p> 9058 9059 <p class="item-info">On macOS, configures the fileExporter, fileImporter, or fileMover to persist and restore the file dialog configuration.</p> 9060 9061</li> 9062 9063 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9064 <p> 9065 <a href="https://developer.apple.com/documentation/swiftui/view/filedialogdefaultdirectory(_:)">.fileDialogDefaultDirectory()</a> 9066 9067 9068 9069 <span class="os-list"> 9070 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9071 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9072 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9073 </span> 9074 </p> 9075 9076 <p class="item-info">Configures the fileExporter, fileImporter, or fileMover to open with the specified default directory.</p> 9077 9078</li> 9079 9080 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9081 <p> 9082 <a href="https://developer.apple.com/documentation/swiftui/view/filedialogimportsunresolvedaliases(_:)">.fileDialogImportsUnresolvedAliases()</a> 9083 9084 9085 9086 <span class="os-list"> 9087 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9088 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9089 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9090 </span> 9091 </p> 9092 9093 <p class="item-info">On macOS, configures the fileExporter, fileImporter, or fileMover behavior when a user chooses an alias.</p> 9094 9095</li> 9096 9097 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9098 <p> 9099 <a href="https://developer.apple.com/documentation/swiftui/view/filedialogmessage(_:)-241kc">.fileDialogMessage()</a> 9100 9101 9102 9103 <span class="os-list"> 9104 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9105 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9106 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9107 </span> 9108 </p> 9109 9110 <p class="item-info">On macOS, configures the the fileExporter, fileImporter, or fileMover with a custom text that is presented to the user, similar to a title.</p> 9111 9112</li> 9113 9114 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9115 <p> 9116 <a href="https://developer.apple.com/documentation/swiftui/view/filedialogurlenabled(_:)">.fileDialogURLEnabled()</a> 9117 9118 9119 9120 <span class="os-list"> 9121 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9122 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9123 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9124 </span> 9125 </p> 9126 9127 <p class="item-info">On macOS, configures the the fileImporter or fileMover to conditionally disable presented URLs.</p> 9128 9129</li> 9130 9131 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9132 <p> 9133 <a href="https://developer.apple.com/documentation/swiftui/view/fileexporter(ispresented:documents:contenttype:oncompletion:)-6xyj7">.fileExporter()</a> 9134 9135 9136 9137 <span class="os-list"> 9138 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 9139 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 9140 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9141 </span> 9142 </p> 9143 9144 <p class="item-info">Presents a system interface for exporting a collection of value type documents to files on disk.</p> 9145 9146</li> 9147 9148 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9149 <p> 9150 <a href="https://developer.apple.com/documentation/swiftui/view/fileexporterfilenamelabel(_:)-55aqy">.fileExporterFilenameLabel()</a> 9151 9152 9153 9154 <span class="os-list"> 9155 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9156 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9157 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9158 </span> 9159 </p> 9160 9161 <p class="item-info">On macOS, configures the fileExporter with a label for the file name field.</p> 9162 9163</li> 9164 9165 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9166 <p> 9167 <a href="https://developer.apple.com/documentation/swiftui/view/fileimporter(ispresented:allowedcontenttypes:oncompletion:)">.fileImporter()</a> 9168 9169 9170 9171 <span class="os-list">
9172 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 9173 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 9174 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9175 </span> 9176 </p> 9177 9178 <p class="item-info">Presents a system interface for allowing the user to import an existing file.</p> 9179 9180</li> 9181 9182 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9183 <p> 9184 <a href="https://developer.apple.com/documentation/swiftui/view/filemover(ispresented:file:oncompletion:)">.fileMover()</a> 9185 9186 9187 9188 <span class="os-list"> 9189 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 9190 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 9191 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9192 </span> 9193 </p> 9194 9195 <p class="item-info">Presents a system interface for allowing the user to move an existing file to a new location.</p> 9196 9197</li> 9198 9199 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9200 <p> 9201 <a href="https://developer.apple.com/documentation/swiftui/view/fullscreencover(item:ondismiss:content:)">.fullScreenCover()</a> 9202 9203 9204 9205 <span class="os-list"> 9206 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 9207 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 9208 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 9209 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9210 </span> 9211 </p> 9212 9213 <p class="item-info">Presents a modal view that covers as much of the screen as possible using the binding you provide as a data source for the sheetâs content.</p> 9214 9215</li> 9216 9217 <li class="with-iOS with-iPadOS with-macOS with-Catalyst"> 9218 <p> 9219 <a href="https://developer.apple.com/documentation/swiftui/view/inspector(ispresented:content:)">.inspector()</a> 9220 9221 9222 9223 <span class="os-list"> 9224 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9225 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9226 </span> 9227 </p> 9228 9229 <p class="item-info">Inserts an inspector at the applied position in the view hierarchy.</p> 9230 9231</li> 9232 9233 <li class="with-iOS with-iPadOS with-macOS with-Catalyst"> 9234 <p> 9235 <a href="https://developer.apple.com/documentation/swiftui/view/inspectorcolumnwidth(_:)">.inspectorColumnWidth()</a> 9236 9237 9238 9239 <span class="os-list"> 9240 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9241 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 9242 </span> 9243 </p> 9244 9245 <p class="item-info">Sets a fixed, preferred width for the inspector containing this view when presented as a trailing column.</p> 9246 9247</li> 9248 9249 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9250 <p> 9251 <a href="https://developer.apple.com/documentation/swiftui/view/interactivedismissdisabled(_:)">.interactiveDismissDisabled()</a> 9252 9253 9254 9255 <span class="os-list"> 9256 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 9257 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 9258 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 9259 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 9260 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9261 </span> 9262 </p> 9263 9264 <p class="item-info">Conditionally prevents interactive dismissal of presentations like popovers, sheets, and inspectors.</p> 9265 9266</li> 9267 9268 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9269 <p> 9270 <a href="https://developer.apple.com/documentation/swiftui/view/popover(item:attachmentanchor:arrowedge:content:)">.popover()</a> 9271 9272 9273 9274 <span class="os-list"> 9275 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9276 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9277 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9278 </span> 9279 </p> 9280 9281 <p class="item-info">Presents a popover using the given item as a data source for the popoverâs content.</p> 9282 9283</li> 9284 9285 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9286 <p> 9287 <a href="https://developer.apple.com/documentation/swiftui/view/presentationbackground(_:)">
9287.presentationBackground()</a> 9288 9289 9290 9291 <span class="os-list"> 9292 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 9293 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 9294 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 9295 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 9296 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9297 </span> 9298 </p> 9299 9300 <p class="item-info">Sets the presentation background of the enclosing sheet using a shape style.</p> 9301 9302</li> 9303 9304 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9305 <p> 9306 <a href="https://developer.apple.com/documentation/swiftui/view/presentationbackgroundinteraction(_:)">.presentationBackgroundInteraction()</a> 9307 9308 9309 9310 <span class="os-list"> 9311 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 9312 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 9313 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 9314 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 9315 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9316 </span> 9317 </p> 9318 9319 <p class="item-info">Controls whether people can interact with the view behind a presentation.</p> 9320 9321</li> 9322 9323 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9324 <p> 9325 <a href="https://developer.apple.com/documentation/swiftui/view/presentationcompactadaptation(_:)">.presentationCompactAdaptation()</a> 9326 9327 9328 9329 <span class="os-list"> 9330 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 9331 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 9332 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 9333 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 9334 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9335 </span> 9336 </p> 9337 9338 <p class="item-info">Specifies how to adapt a presentation to compact size classes.</p> 9339 9340</li> 9341 9342 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9343 <p> 9344 <a href="https://developer.apple.com/documentation/swiftui/view/presentationcontentinteraction(_:)">.presentationContentInteraction()</a> 9345 9346 9347 9348 <span class="os-list"> 9349 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 9350 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 9351 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 9352 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 9353 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9354 </span> 9355 </p> 9356 9357 <p class="item-info">Configures the behavior of swipe gestures on a presentation.</p> 9358 9359</li> 9360 9361 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9362 <p> 9363 <a href="https://developer.apple.com/documentation/swiftui/view/presentationcornerradius(_:)">.presentationCornerRadius()</a> 9364 9365 9366 9367 <span class="os-list"> 9368 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 9369 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 9370 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 9371 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 9372 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9373 </span> 9374 </p> 9375 9376 <p class="item-info">Requests that the presentation have a specific corner radius.</p> 9377 9378</li> 9379 9380 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9381 <p> 9382 <a href="https://developer.apple.com/documentation/swiftui/view/presentationdetents(_:)">.presentationDetents()</a> 9383 9384 9385 9386 <span class="os-list"> 9387 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 9388 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 9389 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 9390 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 9391 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9392 </span> 9393 </p> 9394 9395 <p class="item-info">Sets the available detents for the enclosing sheet.</p> 9396 9397</li> 9398 9399 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9400 <p> 9401 <a href="https://developer.apple.com/documentation/swiftui/view/presentationdragindicator(_:)">.presentationDragIndicator()</a> 9402 9403 9404 9405 <span class="os-list">
9406 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 9407 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 9408 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 9409 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 9410 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9411 </span> 9412 </p> 9413 9414 <p class="item-info">Sets the visibility of the drag indicator on top of a sheet.</p> 9415 9416</li> 9417 9418 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9419 <p> 9420 <a href="https://developer.apple.com/documentation/swiftui/view/sheet(item:ondismiss:content:)">.sheet()</a> 9421 9422 9423 9424 <span class="os-list"> 9425 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9426 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9427 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9428 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9429 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9430 </span> 9431 </p> 9432 9433 <p class="item-info">Presents a sheet using the given item as a data source for the sheetâs content.</p> 9434 9435</li> 9436 9437 </ul> 9438 </div> 9439 9440 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 9441 <h4>Previews in Xcode</h4> 9442 9443 <ul> 9444 <li class="empty"></li> 9445 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9446 <p> 9447 <a href="https://developer.apple.com/documentation/swiftui/view/previewcontext(_:)">.previewContext()</a> 9448 9449 9450 9451 <span class="os-list"> 9452 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 9453 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 9454 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 9455 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 9456 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9457 </span> 9458 </p> 9459 9460 <p class="item-info">Declares a context for the preview.</p> 9461 9462</li> 9463 9464 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9465 <p> 9466 <a href="https://developer.apple.com/documentation/swiftui/view/previewdevice(_:)">.previewDevice()</a> 9467 9468 9469 9470 <span class="os-list"> 9471 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9472 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9473 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9474 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9475 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9476 </span> 9477 </p> 9478 9479 <p class="item-info">Overrides the device for a preview.</p> 9480 9481</li> 9482 9483 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9484 <p> 9485 <a href="https://developer.apple.com/documentation/swiftui/view/previewdisplayname(_:)">.previewDisplayName()</a> 9486 9487 9488 9489 <span class="os-list"> 9490 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9491 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9492 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9493 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9494 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9495 </span> 9496 </p> 9497 9498 <p class="item-info">Sets a user visible name to show in the canvas for a preview.</p> 9499 9500</li> 9501 9502 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9503 <p> 9504 <a href="https://developer.apple.com/documentation/swiftui/view/previewinterfaceorientation(_:)">.previewInterfaceOrientation()</a> 9505 9506 9507 9508 <span class="os-list"> 9509 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 9510 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 9511 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 9512 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 9513 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9514 </span> 9515 </p> 9516 9517 <p class="item-info">Overrides the orientation of the preview.</p> 9518 9519</li> 9520 9521 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9522 <p> 9523 <a href="https://developer.apple.com/documentation/swiftui/view/previewlayout(_:)">.previewLayout()</a> 9524 9525 9526 9527 <span class="os-list">
9528 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9529 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9530 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9531 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9532 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9533 </span> 9534 </p> 9535 9536 <p class="item-info">Overrides the size of the container for the preview.</p> 9537 9538</li> 9539 9540 </ul> 9541 </div> 9542 9543 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 9544 <h4>Search Modifiers</h4> 9545 9546 <ul> 9547 <li class="empty"></li> 9548 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9549 <p> 9550 <a href="https://developer.apple.com/documentation/swiftui/view/searchable(text:placement:prompt:)-18a8f">.searchable()</a> 9551 9552 9553 9554 <span class="os-list"> 9555 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 9556 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 9557 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 9558 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 9559 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9560 </span> 9561 </p> 9562 9563 <p class="item-info">Marks this view as searchable, which configures the display of a search field.</p> 9564 9565</li> 9566 9567 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9568 <p> 9569 <a href="https://developer.apple.com/documentation/swiftui/view/searchcompletion(_:)-2uaf3">.searchCompletion()</a> 9570 9571 9572 9573 <span class="os-list"> 9574 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 9575 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 9576 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 9577 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 9578 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9579 </span> 9580 </p> 9581 9582 <p class="item-info">Associates a fully formed string with the value of this view.</p> 9583 9584</li> 9585 9586 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 9587 <p> 9588 <a href="https://developer.apple.com/documentation/swiftui/view/searchdictationbehavior(_:)">.searchDictationBehavior()</a> 9589 9590 9591 9592 <span class="os-list"> 9593 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 9594 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9595 </span> 9596 </p> 9597 9598 9599</li> 9600 9601 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 9602 <p> 9603 <a href="https://developer.apple.com/documentation/swiftui/view/searchscopes(_:scopes:)">.searchScopes()</a> 9604 9605 9606 9607 <span class="os-list"> 9608 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 9609 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 9610 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 9611 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9612 </span> 9613 </p> 9614 9615 <p class="item-info">Configures the search scopes for this view.</p> 9616 9617</li> 9618 9619 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9620 <p> 9621 <a href="https://developer.apple.com/documentation/swiftui/view/searchsuggestions(_:)">.searchSuggestions()</a> 9622 9623 9624 9625 <span class="os-list"> 9626 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 9627 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 9628 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 9629 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 9630 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9631 </span> 9632 </p> 9633 9634 <p class="item-info">Configures the search suggestions for this view.</p> 9635 9636</li> 9637 9638 </ul> 9639 </div> 9640 9641 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 9642 <h4>State Modifiers</h4> 9643 9644 <ul> 9645 <li class="empty"></li> 9646 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9647 <p> 9648 <a href="https://developer.apple.com/documentation/swiftui/view/anchorpreference(key:value:transform:)">.anchorPreference()</a> 9649 9650 9651 9652 <span class="os-list">
9653 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9654 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9655 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9656 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9657 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9658 </span> 9659 </p> 9660 9661 <p class="item-info">Sets a value for the specified preference key, the value is a function of a geometry value tied to the current coordinate space, allowing readers of the value to convert the geometry to their local coordinates.</p> 9662 9663</li> 9664 9665 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9666 <p> 9667 <a href="https://developer.apple.com/documentation/swiftui/view/backgroundpreferencevalue(_:_:)">.backgroundPreferenceValue()</a> 9668 9669 9670 9671 <span class="os-list"> 9672 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9673 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9674 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9675 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9676 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9677 </span> 9678 </p> 9679 9680 <p class="item-info">Reads the specified preference value from the view, using it to produce a second view that is applied as the background of the original view.</p> 9681 9682</li> 9683 9684 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9685 <p> 9686 <a href="https://developer.apple.com/documentation/swiftui/view/defaultappstorage(_:)">.defaultAppStorage()</a> 9687 9688 9689 9690 <span class="os-list"> 9691 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 9692 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 9693 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 9694 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 9695 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9696 </span> 9697 </p> 9698 9699 <p class="item-info">The default store used by AppStorage contained within the view.</p> 9700 9701</li> 9702 9703 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9704 <p> 9705 <a href="https://developer.apple.com/documentation/swiftui/view/environment(_:_:)">.environment()</a> 9706 9707 9708 9709 <span class="os-list"> 9710 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9711 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9712 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9713 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9714 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9715 </span> 9716 </p> 9717 9718 <p class="item-info">Sets the environment value of the specified key path to the given value.</p> 9719 9720</li> 9721 9722 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9723 <p> 9724 <a href="https://developer.apple.com/documentation/swiftui/view/environmentobject(_:)">.environmentObject()</a> 9725 9726 9727 9728 <span class="os-list"> 9729 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9730 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9731 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9732 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9733 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9734 </span> 9735 </p> 9736 9737 <p class="item-info">Supplies an ObservableObject to a view subhierarchy.</p> 9738 9739</li> 9740 9741 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9742 <p> 9743 <a href="https://developer.apple.com/documentation/swiftui/view/id(_:)">.id()</a> 9744 9745 9746 9747 <span class="os-list"> 9748 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9749 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9750 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9751 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span>
9752 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9753 </span> 9754 </p> 9755 9756 <p class="item-info">Binds a viewâs identity to the given proxy value.</p> 9757 9758</li> 9759 9760 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9761 <p> 9762 <a href="https://developer.apple.com/documentation/swiftui/view/onpreferencechange(_:perform:)">.onPreferenceChange()</a> 9763 9764 9765 9766 <span class="os-list"> 9767 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9768 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9769 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9770 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9771 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9772 </span> 9773 </p> 9774 9775 <p class="item-info">Adds an action to perform when the specified preference keyâs value changes.</p> 9776 9777</li> 9778 9779 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9780 <p> 9781 <a href="https://developer.apple.com/documentation/swiftui/view/overlaypreferencevalue(_:_:)">.overlayPreferenceValue()</a> 9782 9783 9784 9785 <span class="os-list"> 9786 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9787 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9788 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9789 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9790 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9791 </span> 9792 </p> 9793 9794 <p class="item-info">Reads the specified preference value from the view, using it to produce a second view that is applied as an overlay to the original view.</p> 9795 9796</li> 9797 9798 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9799 <p> 9800 <a href="https://developer.apple.com/documentation/swiftui/view/preference(key:value:)">.preference()</a> 9801 9802 9803 9804 <span class="os-list"> 9805 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9806 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9807 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9808 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9809 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9810 </span> 9811 </p> 9812 9813 <p class="item-info">Sets a value for the given preference.</p> 9814 9815</li> 9816 9817 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9818 <p> 9819 <a href="https://developer.apple.com/documentation/swiftui/view/tag(_:)">.tag()</a> 9820 9821 9822 9823 <span class="os-list"> 9824 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9825 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9826 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9827 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9828 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9829 </span> 9830 </p> 9831 9832 <p class="item-info">Sets the unique tag value of this view.</p> 9833 9834</li> 9835 9836 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9837 <p> 9838 <a href="https://developer.apple.com/documentation/swiftui/view/transformanchorpreference(key:value:transform:)">.transformAnchorPreference()</a> 9839 9840 9841 9842 <span class="os-list"> 9843 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9844 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9845 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9846 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9847 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9848 </span> 9849 </p> 9850 9851 <p class="item-info">Sets a value for the specified preference key, the value is a function of the keyâs current value and a geometry value tied to the current coordinate space, allowing readers of the value to convert the geometry to their local coordinates.</p> 9852 9853</li> 9854 9855 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9856 <p> 9857 <a href="https://developer.apple.com/documentation/swiftui/view/transformenvironment(_:transform:)">.transformEnvironment()</a> 9858 9859 9860 9861 <span class="os-list">
9862 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9863 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9864 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9865 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9866 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9867 </span> 9868 </p> 9869 9870 <p class="item-info">Transforms the environment value of the specified key path with the given function.</p> 9871 9872</li> 9873 9874 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9875 <p> 9876 <a href="https://developer.apple.com/documentation/swiftui/view/transformpreference(_:_:)">.transformPreference()</a> 9877 9878 9879 9880 <span class="os-list"> 9881 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9882 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9883 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9884 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9885 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9886 </span> 9887 </p> 9888 9889 <p class="item-info">Applies a transformation to a preference value.</p> 9890 9891</li> 9892 9893 </ul> 9894 </div> 9895 9896 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 9897 <h4>Style Modifiers</h4> 9898 9899 <ul> 9900 <li class="empty"></li> 9901 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 9902 <p> 9903 <a href="https://developer.apple.com/documentation/swiftui/view/buttonstyle(_:)-66fbx">.buttonStyle()</a> 9904 9905 9906 9907 <span class="os-list"> 9908 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9909 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9910 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 9911 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 9912 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9913 </span> 9914 </p> 9915 9916 <p class="item-info">Sets the style for buttons within this view to a button style with a custom appearance and custom interaction behavior.</p> 9917 9918</li> 9919 9920 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 9921 <p> 9922 <a href="https://developer.apple.com/documentation/swiftui/view/controlgroupstyle(_:)">.controlGroupStyle()</a> 9923 9924 9925 9926 <span class="os-list"> 9927 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 9928 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 9929 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 9930 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9931 </span> 9932 </p> 9933 9934 <p class="item-info">Sets the style for control groups within this view.</p> 9935 9936</li> 9937 9938 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 9939 <p> 9940 <a href="https://developer.apple.com/documentation/swiftui/view/datepickerstyle(_:)">.datePickerStyle()</a> 9941 9942 9943 9944 <span class="os-list"> 9945 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 9946 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 9947 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 9948 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9949 </span> 9950 </p> 9951 9952 <p class="item-info">Sets the style for date pickers within this view.</p> 9953 9954</li> 9955 9956 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9957 <p> 9958 <a href="https://developer.apple.com/documentation/swiftui/view/disclosuregroupstyle(_:)">.disclosureGroupStyle()</a> 9959 9960 9961 9962 <span class="os-list"> 9963 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 9964 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 9965 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9966 </span> 9967 </p> 9968 9969 <p class="item-info">Sets the style for disclosure groups within this view.</p> 9970 9971</li> 9972 9973 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 9974 <p> 9975 <a href="https://developer.apple.com/documentation/swiftui/view/gaugestyle(_:)">.gaugeStyle()</a> 9976 9977 9978 9979 <span class="os-list">
9980 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 9981 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 9982 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 9983 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 9984 </span> 9985 </p> 9986 9987 <p class="item-info">Sets the style for gauges within this view.</p> 9988 9989</li> 9990 9991 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 9992 <p> 9993 <a href="https://developer.apple.com/documentation/swiftui/view/groupboxstyle(_:)">.groupBoxStyle()</a> 9994 9995 9996 9997 <span class="os-list"> 9998 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 9999 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 10000 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10001 </span> 10002 </p> 10003 10004 <p class="item-info">Sets the style for group boxes within this view.</p> 10005 10006</li> 10007 10008 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10009 <p> 10010 <a href="https://developer.apple.com/documentation/swiftui/view/indexviewstyle(_:)">.indexViewStyle()</a> 10011 10012 10013 10014 <span class="os-list"> 10015 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 10016 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 10017 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 10018 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10019 </span> 10020 </p> 10021 10022 <p class="item-info">Sets the style for the index view within the current environment.</p> 10023 10024</li> 10025 10026 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10027 <p> 10028 <a href="https://developer.apple.com/documentation/swiftui/view/labelstyle(_:)">.labelStyle()</a> 10029 10030 10031 10032 <span class="os-list"> 10033 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 10034 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 10035 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 10036 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 10037 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10038 </span> 10039 </p> 10040 10041 <p class="item-info">Sets the style for labels within this view.</p> 10042 10043</li> 10044 10045 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10046 <p> 10047 <a href="https://developer.apple.com/documentation/swiftui/view/liststyle(_:)">.listStyle()</a> 10048 10049 10050 10051 <span class="os-list"> 10052 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10053 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10054 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10055 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10056 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10057 </span> 10058 </p> 10059 10060 <p class="item-info">Sets the style for lists within this view.</p> 10061 10062</li> 10063 10064 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 10065 <p> 10066 <a href="https://developer.apple.com/documentation/swiftui/view/menustyle(_:)">.menuStyle()</a> 10067 10068 10069 10070 <span class="os-list"> 10071 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 10072 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 10073 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 10074 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10075 </span> 10076 </p> 10077 10078 <p class="item-info">Sets the style for menus within this view.</p> 10079 10080</li> 10081 10082 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10083 <p> 10084 <a href="https://developer.apple.com/documentation/swiftui/view/navigationsplitviewstyle(_:)">.navigationSplitViewStyle()</a> 10085 10086 10087 10088 <span class="os-list"> 10089 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10090 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10091 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10092 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10093 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10094 </span> 10095 </p> 10096 10097 <p class="item-info">Sets the style for navigation split views within this view.</p> 10098 10099</li> 10100 10101 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10102 <p> 10103 <a href="https://developer.apple.com/documentation/swiftui/view/pickerstyle(_:)">.pickerStyle()</a> 10104 10105 10106 10107 <span class="os-list">
10108 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10109 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10110 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10111 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10112 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10113 </span> 10114 </p> 10115 10116 <p class="item-info">Sets the style for pickers within this view.</p> 10117 10118</li> 10119 10120 <li class="with-macOS"> 10121 <p> 10122 <a href="https://developer.apple.com/documentation/swiftui/view/presentedwindowstyle(_:)">.presentedWindowStyle()</a> 10123 10124 10125 10126 <span class="os-list"> 10127 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 10128 </span> 10129 </p> 10130 10131 <p class="item-info">Sets the style for windows created by interacting with this view.</p> 10132 10133</li> 10134 10135 <li class="with-macOS"> 10136 <p> 10137 <a href="https://developer.apple.com/documentation/swiftui/view/presentedwindowtoolbarstyle(_:)">.presentedWindowToolbarStyle()</a> 10138 10139 10140 10141 <span class="os-list"> 10142 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 10143 </span> 10144 </p> 10145 10146 <p class="item-info">Sets the style for the toolbar in windows created by interacting with this view.</p> 10147 10148</li> 10149 10150 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10151 <p> 10152 <a href="https://developer.apple.com/documentation/swiftui/view/progressviewstyle(_:)">.progressViewStyle()</a> 10153 10154 10155 10156 <span class="os-list"> 10157 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 10158 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 10159 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 10160 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 10161 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10162 </span> 10163 </p> 10164 10165 <p class="item-info">Sets the style for progress views in this view.</p> 10166 10167</li> 10168 10169 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 10170 <p> 10171 <a href="https://developer.apple.com/documentation/swiftui/view/tablestyle(_:)">.tableStyle()</a> 10172 10173 10174 10175 <span class="os-list"> 10176 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10177 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 10178 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10179 </span> 10180 </p> 10181 10182 <p class="item-info">Sets the style for tables within this view.</p> 10183 10184</li> 10185 10186 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10187 <p> 10188 <a href="https://developer.apple.com/documentation/swiftui/view/tabviewstyle(_:)">.tabViewStyle()</a> 10189 10190 10191 10192 <span class="os-list"> 10193 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 10194 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 10195 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 10196 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 10197 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10198 </span> 10199 </p> 10200 10201 <p class="item-info">Sets the style for the tab view within the current environment.</p> 10202 10203</li> 10204 10205 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 10206 <p> 10207 <a href="https://developer.apple.com/documentation/swiftui/view/texteditorstyle(_:)">.textEditorStyle()</a> 10208 10209 10210 10211 <span class="os-list"> 10212 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 10213 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 10214 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10215 </span> 10216 </p> 10217 10218 <p class="item-info">Sets the style for text editors within this view.</p> 10219 10220</li> 10221 10222 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10223 <p> 10224 <a href="https://developer.apple.com/documentation/swiftui/view/textfieldstyle(_:)">.textFieldStyle()</a> 10225 10226 10227 10228 <span class="os-list"> 10229 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10230 <span class="tag macOS" data-version="10.15">macOS 10.15</span>
10231 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10232 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10233 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10234 </span> 10235 </p> 10236 10237 <p class="item-info">Sets the style for text fields within this view.</p> 10238 10239</li> 10240 10241 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10242 <p> 10243 <a href="https://developer.apple.com/documentation/swiftui/view/togglestyle(_:)">.toggleStyle()</a> 10244 10245 10246 10247 <span class="os-list"> 10248 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10249 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10250 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10251 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10252 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10253 </span> 10254 </p> 10255 10256 <p class="item-info">Sets the style for toggles in a view hierarchy.</p> 10257 10258</li> 10259 10260 </ul> 10261 </div> 10262 10263 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 10264 <h4>Text and Symbol Modifiers</h4> 10265 10266 <ul> 10267 <li class="empty"></li> 10268 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10269 <p> 10270 <a href="https://developer.apple.com/documentation/swiftui/view/allowstightening(_:)">.allowsTightening()</a> 10271 10272 10273 10274 <span class="os-list"> 10275 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10276 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10277 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10278 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10279 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10280 </span> 10281 </p> 10282 10283 <p class="item-info">Sets whether text in this view can compress the space between characters when necessary to fit text in a line.</p> 10284 10285</li> 10286 10287 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10288 <p> 10289 <a href="https://developer.apple.com/documentation/swiftui/view/autocorrectiondisabled(_:)">.autocorrectionDisabled()</a> 10290 10291 10292 10293 <span class="os-list"> 10294 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10295 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10296 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 10297 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10298 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10299 </span> 10300 </p> 10301 10302 <p class="item-info">Sets whether to disable autocorrection for this view.</p> 10303 10304</li> 10305 10306 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10307 <p> 10308 <a href="https://developer.apple.com/documentation/swiftui/view/baselineoffset(_:)">.baselineOffset()</a> 10309 10310 10311 10312 <span class="os-list"> 10313 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10314 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10315 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10316 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10317 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10318 </span> 10319 </p> 10320 10321 <p class="item-info">Sets the vertical offset for the text relative to its baseline in this view.</p> 10322 10323</li> 10324 10325 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10326 <p> 10327 <a href="https://developer.apple.com/documentation/swiftui/view/bold(_:)">.bold()</a> 10328 10329 10330 10331 <span class="os-list"> 10332 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10333 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10334 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10335 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10336 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10337 </span> 10338 </p> 10339 10340 <p class="item-info">Applies a bold font weight to the text in this view.</p> 10341 10342</li> 10343 10344 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10345 <p> 10346 <a href="https://developer.apple.com/documentation/swiftui/view/dynamictypesize(_:)-1m2tf">.dynamicTypeSize()</a> 10347 10348 10349 10350 <span class="os-list">
10351 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 10352 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 10353 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 10354 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 10355 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10356 </span> 10357 </p> 10358 10359 <p class="item-info">Sets the Dynamic Type size within the view to the given value.</p> 10360 10361</li> 10362 10363 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 10364 <p> 10365 <a href="https://developer.apple.com/documentation/swiftui/view/finddisabled(_:)">.findDisabled()</a> 10366 10367 10368 10369 <span class="os-list"> 10370 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10371 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10372 </span> 10373 </p> 10374 10375 <p class="item-info">Prevents find and replace operations in a text editor.</p> 10376 10377</li> 10378 10379 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 10380 <p> 10381 <a href="https://developer.apple.com/documentation/swiftui/view/findnavigator(ispresented:)">.findNavigator()</a> 10382 10383 10384 10385 <span class="os-list"> 10386 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10387 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10388 </span> 10389 </p> 10390 10391 <p class="item-info">Programmatically presents the find and replace interface for text editor views.</p> 10392 10393</li> 10394 10395 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10396 <p> 10397 <a href="https://developer.apple.com/documentation/swiftui/view/flipsforrighttoleftlayoutdirection(_:)">.flipsForRightToLeftLayoutDirection()</a> 10398 10399 10400 10401 <span class="os-list"> 10402 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10403 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10404 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10405 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10406 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10407 </span> 10408 </p> 10409 10410 <p class="item-info">Sets whether this view mirrors its contents horizontally when the layout direction is right-to-left.</p> 10411 10412</li> 10413 10414 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10415 <p> 10416 <a href="https://developer.apple.com/documentation/swiftui/view/font(_:)">.font()</a> 10417 10418 10419 10420 <span class="os-list"> 10421 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10422 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10423 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10424 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10425 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10426 </span> 10427 </p> 10428 10429 <p class="item-info">Sets the default font for text in this view.</p> 10430 10431</li> 10432 10433 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10434 <p> 10435 <a href="https://developer.apple.com/documentation/swiftui/view/fontdesign(_:)">.fontDesign()</a> 10436 10437 10438 10439 <span class="os-list"> 10440 <span class="tag iOS" data-version="16.1">iOS 16.1</span> 10441 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10442 <span class="tag watchOS" data-version="9.1">watchOS 9.1</span> 10443 <span class="tag tvOS" data-version="16.1">tvOS 16.1</span> 10444 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10445 </span> 10446 </p> 10447 10448 <p class="item-info">Sets the font design of the text in this view.</p> 10449 10450</li> 10451 10452 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10453 <p> 10454 <a href="https://developer.apple.com/documentation/swiftui/view/fontweight(_:)">.fontWeight()</a> 10455 10456 10457 10458 <span class="os-list"> 10459 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10460 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10461 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10462 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span>
10463 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10464 </span> 10465 </p> 10466 10467 <p class="item-info">Sets the font weight of the text in this view.</p> 10468 10469</li> 10470 10471 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10472 <p> 10473 <a href="https://developer.apple.com/documentation/swiftui/view/fontwidth(_:)">.fontWidth()</a> 10474 10475 10476 10477 <span class="os-list"> 10478 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10479 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10480 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10481 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10482 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10483 </span> 10484 </p> 10485 10486 <p class="item-info">Sets the font width of the text in this view.</p> 10487 10488</li> 10489 10490 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10491 <p> 10492 <a href="https://developer.apple.com/documentation/swiftui/view/italic(_:)">.italic()</a> 10493 10494 10495 10496 <span class="os-list"> 10497 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10498 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10499 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10500 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10501 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10502 </span> 10503 </p> 10504 10505 <p class="item-info">Applies italics to the text in this view.</p> 10506 10507</li> 10508 10509 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10510 <p> 10511 <a href="https://developer.apple.com/documentation/swiftui/view/kerning(_:)">.kerning()</a> 10512 10513 10514 10515 <span class="os-list"> 10516 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10517 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10518 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10519 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10520 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10521 </span> 10522 </p> 10523 10524 <p class="item-info">Sets the spacing, or kerning, between characters for the text in this view.</p> 10525 10526</li> 10527 10528 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 10529 <p> 10530 <a href="https://developer.apple.com/documentation/swiftui/view/keyboardtype(_:)">.keyboardType()</a> 10531 10532 10533 10534 <span class="os-list"> 10535 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10536 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10537 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10538 </span> 10539 </p> 10540 10541 <p class="item-info">Sets the keyboard type for this view.</p> 10542 10543</li> 10544 10545 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10546 <p> 10547 <a href="https://developer.apple.com/documentation/swiftui/view/linelimit(_:)-513mb">.lineLimit()</a> 10548 10549 10550 10551 <span class="os-list"> 10552 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10553 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10554 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10555 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10556 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10557 </span> 10558 </p> 10559 10560 <p class="item-info">Sets the maximum number of lines that text can occupy in this view.</p> 10561 10562</li> 10563 10564 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10565 <p> 10566 <a href="https://developer.apple.com/documentation/swiftui/view/linespacing(_:)">.lineSpacing()</a> 10567 10568 10569 10570 <span class="os-list"> 10571 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10572 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10573 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10574 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10575 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10576 </span> 10577 </p> 10578 10579 <p class="item-info">Sets the amount of space between lines of text in this view.</p> 10580 10581</li> 10582 10583 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10584 <p> 10585 <a href="https://developer.apple.com/documentation/swiftui/view/minimumscalefactor(_:)">.minimumScaleFactor()</a> 10586 10587 10588 10589 <span class="os-list">
10590 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10591 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10592 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10593 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10594 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10595 </span> 10596 </p> 10597 10598 <p class="item-info">Sets the minimum amount that text in this view scales down to fit in the available space.</p> 10599 10600</li> 10601 10602 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10603 <p> 10604 <a href="https://developer.apple.com/documentation/swiftui/view/monospaced(_:)">.monospaced()</a> 10605 10606 10607 10608 <span class="os-list"> 10609 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10610 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10611 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10612 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10613 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10614 </span> 10615 </p> 10616 10617 <p class="item-info">Modifies the fonts of all child views to use the fixed-width variant of the current font, if possible.</p> 10618 10619</li> 10620 10621 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10622 <p> 10623 <a href="https://developer.apple.com/documentation/swiftui/view/monospaceddigit()">.monospacedDigit()</a> 10624 10625 10626 10627 <span class="os-list"> 10628 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 10629 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 10630 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 10631 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 10632 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10633 </span> 10634 </p> 10635 10636 <p class="item-info">Modifies the fonts of all child views to use fixed-width digits, if possible, while leaving other characters proportionally spaced.</p> 10637 10638</li> 10639 10640 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10641 <p> 10642 <a href="https://developer.apple.com/documentation/swiftui/view/multilinetextalignment(_:)">.multilineTextAlignment()</a> 10643 10644 10645 10646 <span class="os-list"> 10647 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10648 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10649 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10650 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10651 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10652 </span> 10653 </p> 10654 10655 <p class="item-info">Sets the alignment of a text view that contains multiple lines of text.</p> 10656 10657</li> 10658 10659 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 10660 <p> 10661 <a href="https://developer.apple.com/documentation/swiftui/view/replacedisabled(_:)">.replaceDisabled()</a> 10662 10663 10664 10665 <span class="os-list"> 10666 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10667 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10668 </span> 10669 </p> 10670 10671 <p class="item-info">Prevents replace operations in a text editor.</p> 10672 10673</li> 10674 10675 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS"> 10676 <p> 10677 <a href="https://developer.apple.com/documentation/swiftui/view/scrolldismisseskeyboard(_:)">.scrollDismissesKeyboard()</a> 10678 10679 10680 10681 <span class="os-list"> 10682 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10683 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10684 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10685 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10686 </span> 10687 </p> 10688 10689 <p class="item-info">Configures the behavior in which scrollable content interacts with the software keyboard.</p> 10690 10691</li> 10692 10693 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10694 <p> 10695 <a href="https://developer.apple.com/documentation/swiftui/view/strikethrough(_:pattern:color:)">.strikethrough()</a> 10696 10697 10698 10699 <span class="os-list">
10700 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10701 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10702 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10703 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10704 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10705 </span> 10706 </p> 10707 10708 <p class="item-info">Applies a strikethrough to the text in this view.</p> 10709 10710</li> 10711 10712 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10713 <p> 10714 <a href="https://developer.apple.com/documentation/swiftui/view/symbolrenderingmode(_:)">.symbolRenderingMode()</a> 10715 10716 10717 10718 <span class="os-list"> 10719 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 10720 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 10721 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 10722 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 10723 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10724 </span> 10725 </p> 10726 10727 <p class="item-info">Sets the rendering mode for symbol images within this view.</p> 10728 10729</li> 10730 10731 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10732 <p> 10733 <a href="https://developer.apple.com/documentation/swiftui/view/symbolvariant(_:)">.symbolVariant()</a> 10734 10735 10736 10737 <span class="os-list"> 10738 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 10739 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 10740 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 10741 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 10742 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10743 </span> 10744 </p> 10745 10746 <p class="item-info">Makes symbols within the view show a particular variant.</p> 10747 10748</li> 10749 10750 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10751 <p> 10752 <a href="https://developer.apple.com/documentation/swiftui/view/textcase(_:)">.textCase()</a> 10753 10754 10755 10756 <span class="os-list"> 10757 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 10758 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 10759 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 10760 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 10761 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10762 </span> 10763 </p> 10764 10765 <p class="item-info">Sets a transform for the case of the text contained in this view when displayed.</p> 10766 10767</li> 10768 10769 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10770 <p> 10771 <a href="https://developer.apple.com/documentation/swiftui/view/textcontenttype(_:)-ufdv">.textContentType()</a> 10772 10773 10774 10775 <span class="os-list"> 10776 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10777 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 10778 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10779 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10780 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10781 </span> 10782 </p> 10783 10784 <p class="item-info">Sets the text content type for this view, which the system uses to offer suggestions while the user enters text on an iOS or tvOS device.</p> 10785 10786</li> 10787 10788 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10789 <p> 10790 <a href="https://developer.apple.com/documentation/swiftui/view/textinputautocapitalization(_:)">.textInputAutocapitalization()</a> 10791 10792 10793 10794 <span class="os-list"> 10795 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 10796 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 10797 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 10798 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10799 </span> 10800 </p> 10801 10802 <p class="item-info">Sets how often the shift key in the keyboard is automatically enabled.</p> 10803 10804</li> 10805 10806 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10807 <p> 10808 <a href="https://developer.apple.com/documentation/swiftui/view/textscale(_:isenabled:)">.textScale()</a> 10809 10810 10811 10812 <span class="os-list">
10813 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 10814 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 10815 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 10816 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 10817 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10818 </span> 10819 </p> 10820 10821 <p class="item-info">Applies a text scale to text in the view.</p> 10822 10823</li> 10824 10825 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 10826 <p> 10827 <a href="https://developer.apple.com/documentation/swiftui/view/textselection(_:)">.textSelection()</a> 10828 10829 10830 10831 <span class="os-list"> 10832 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 10833 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 10834 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10835 </span> 10836 </p> 10837 10838 <p class="item-info">Controls whether people can select text within this view.</p> 10839 10840</li> 10841 10842 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10843 <p> 10844 <a href="https://developer.apple.com/documentation/swiftui/view/tracking(_:)">.tracking()</a> 10845 10846 10847 10848 <span class="os-list"> 10849 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10850 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10851 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10852 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10853 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10854 </span> 10855 </p> 10856 10857 <p class="item-info">Sets the tracking for the text in this view.</p> 10858 10859</li> 10860 10861 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10862 <p> 10863 <a href="https://developer.apple.com/documentation/swiftui/view/truncationmode(_:)">.truncationMode()</a> 10864 10865 10866 10867 <span class="os-list"> 10868 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10869 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10870 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10871 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10872 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10873 </span> 10874 </p> 10875 10876 <p class="item-info">Sets the truncation mode for lines of text that are too long to fit in the available space.</p> 10877 10878</li> 10879 10880 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10881 <p> 10882 <a href="https://developer.apple.com/documentation/swiftui/view/typesettinglanguage(_:isenabled:)-4ldzm">.typesettingLanguage()</a> 10883 10884 10885 10886 <span class="os-list"> 10887 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 10888 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 10889 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 10890 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 10891 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10892 </span> 10893 </p> 10894 10895 <p class="item-info">Specifies the language for typesetting.</p> 10896 10897</li> 10898 10899 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10900 <p> 10901 <a href="https://developer.apple.com/documentation/swiftui/view/underline(_:pattern:color:)">.underline()</a> 10902 10903 10904 10905 <span class="os-list"> 10906 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 10907 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 10908 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 10909 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 10910 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10911 </span> 10912 </p> 10913 10914 <p class="item-info">Applies an underline to the text in this view.</p> 10915 10916</li> 10917 10918 </ul> 10919 </div> 10920 10921 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 10922 <h4>View Fundamentals</h4> 10923 10924 <ul> 10925 <li class="empty"></li> 10926 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10927 <p> 10928 <a href="https://developer.apple.com/documentation/swiftui/view/modifier(_:)">.modifier()</a> 10929 10930 10931 10932 <span class="os-list">
10933 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10934 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10935 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10936 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10937 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10938 </span> 10939 </p> 10940 10941 <p class="item-info">Applies a modifier to a view and returns a new view.</p> 10942 10943</li> 10944 10945 </ul> 10946 </div> 10947 10948 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 10949 <h4>Deprecated Modifiers</h4> 10950 10951 <ul> 10952 <li class="empty"></li> 10953 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10954 <p> 10955 <a href="https://developer.apple.com/documentation/swiftui/view/accentcolor(_:)">.accentColor()</a> 10956 10957 10958 <span class="tag deprecated">Deprecated</span> 10959 10960 <span class="os-list"> 10961 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10962 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10963 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10964 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10965 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10966 </span> 10967 </p> 10968 10969 <p class="item-info">Sets the accent color for this view and the views it contains.</p> 10970 10971 <p class="item-info">â Use the asset catalogâs accent color or tint(_:) instead.</p> 10972</li> 10973 10974 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10975 <p> 10976 <a href="https://developer.apple.com/documentation/swiftui/view/accessibility(hint:)">.accessibility()</a> 10977 10978 10979 <span class="tag deprecated">Deprecated</span> 10980 10981 <span class="os-list"> 10982 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 10983 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 10984 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 10985 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 10986 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 10987 </span> 10988 </p> 10989 10990 <p class="item-info">Communicates to the user what happens after performing the viewâs action.</p> 10991 10992 <p class="item-info">â Use accessibilityHint(_:) instead.</p> 10993</li> 10994 10995 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 10996 <p> 10997 <a href="https://developer.apple.com/documentation/swiftui/view/actionsheet(item:content:)">.actionSheet()</a> 10998 10999 11000 11001 <span class="os-list"> 11002 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11003 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11004 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11005 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11006 </span> 11007 </p> 11008 11009 <p class="item-info">Presents an action sheet using the given item as a data source for the sheetâs content.</p> 11010 11011</li> 11012 11013 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 11014 <p> 11015 <a href="https://developer.apple.com/documentation/swiftui/view/autocapitalization(_:)">.autocapitalization()</a> 11016 11017 11018 <span class="tag deprecated">Deprecated</span> 11019 11020 <span class="os-list"> 11021 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11022 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11023 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11024 </span> 11025 </p> 11026 11027 <p class="item-info">Sets whether to apply auto-capitalization to this view.</p> 11028 11029 <p class="item-info">â Use textInputAutocapitalization(_:) instead.</p> 11030</li> 11031 11032 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11033 <p> 11034 <a href="https://developer.apple.com/documentation/swiftui/view/colorscheme(_:)">.colorScheme()</a> 11035 11036 11037 <span class="tag deprecated">Deprecated</span> 11038 11039 <span class="os-list"> 11040 <span class="tag iOS" data-version="13.0">iOS 13.0</span>
11041 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11042 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11043 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11044 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11045 </span> 11046 </p> 11047 11048 <p class="item-info">Sets this viewâs color scheme.</p> 11049 11050 <p class="item-info">â Use preferredColorScheme(_:) instead.</p> 11051</li> 11052 11053 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11054 <p> 11055 <a href="https://developer.apple.com/documentation/swiftui/view/cornerradius(_:antialiased:)">.cornerRadius()</a> 11056 11057 11058 <span class="tag deprecated">Deprecated</span> 11059 11060 <span class="os-list"> 11061 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11062 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11063 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11064 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11065 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11066 </span> 11067 </p> 11068 11069 <p class="item-info">Clips this view to its bounding frame, with the specified corner radius.</p> 11070 11071 <p class="item-info">â Use clipShape(_:style:) or fill(style:) instead.</p> 11072</li> 11073 11074 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11075 <p> 11076 <a href="https://developer.apple.com/documentation/swiftui/view/disableautocorrection(_:)">.disableAutocorrection()</a> 11077 11078 11079 <span class="tag deprecated">Deprecated</span> 11080 11081 <span class="os-list"> 11082 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11083 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11084 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 11085 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11086 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11087 </span> 11088 </p> 11089 11090 <p class="item-info">Sets whether to disable autocorrection for this view.</p> 11091 11092 <p class="item-info">â Use autocorrectionDisabled(_:) instead.</p> 11093</li> 11094 11095 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11096 <p> 11097 <a href="https://developer.apple.com/documentation/swiftui/view/edgesignoringsafearea(_:)">.edgesIgnoringSafeArea()</a> 11098 11099 11100 <span class="tag deprecated">Deprecated</span> 11101 11102 <span class="os-list"> 11103 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11104 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11105 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11106 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11107 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11108 </span> 11109 </p> 11110 11111 <p class="item-info">Changes the viewâs proposed area to extend outside the screenâs safe areas.</p> 11112 11113 <p class="item-info">â Use ignoresSafeArea(_:edges:) instead.</p> 11114</li> 11115 11116 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11117 <p> 11118 <a href="https://developer.apple.com/documentation/swiftui/view/foregroundcolor(_:)">.foregroundColor()</a> 11119 11120 11121 <span class="tag deprecated">Deprecated</span> 11122 11123 <span class="os-list"> 11124 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11125 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11126 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11127 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11128 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11129 </span> 11130 </p> 11131 11132 <p class="item-info">Sets the color of the foreground elements displayed by this view.</p> 11133 11134 <p class="item-info">â Use foregroundStyle(_:) instead.</p> 11135</li> 11136 11137 <li class="with-watchOS"> 11138 <p> 11139 <a href="https://developer.apple.com/documentation/swiftui/view/listrowplattercolor(_:)">.listRowPlatterColor()</a> 11140 11141 11142 <span class="tag deprecated">Deprecated</span> 11143 11144 <span class="os-list">
11145 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11146 </span> 11147 </p> 11148 11149 <p class="item-info">Sets the color that the system applies to the row background when this view is placed in a list.</p> 11150 11151 <p class="item-info">â Use listItemTint(_:) instead.</p> 11152</li> 11153 11154 <li class="with-macOS"> 11155 <p> 11156 <a href="https://developer.apple.com/documentation/swiftui/view/menubuttonstyle(_:)">.menuButtonStyle()</a> 11157 11158 11159 <span class="tag deprecated">Deprecated</span> 11160 11161 <span class="os-list"> 11162 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11163 </span> 11164 </p> 11165 11166 <p class="item-info">Sets the style for menu buttons within this view.</p> 11167 11168 <p class="item-info">â Use menuStyle(_:) instead.</p> 11169</li> 11170 11171 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11172 <p> 11173 <a href="https://developer.apple.com/documentation/swiftui/view/navigationbarhidden(_:)">.navigationBarHidden()</a> 11174 11175 11176 <span class="tag deprecated">Deprecated</span> 11177 11178 <span class="os-list"> 11179 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11180 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11181 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11182 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11183 </span> 11184 </p> 11185 11186 <p class="item-info">Hides the navigation bar for this view.</p> 11187 11188 <p class="item-info">â Use toolbar(_:for:) with the Visibility.hidden visibility and the navigationBar placement instead.</p> 11189</li> 11190 11191 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 11192 <p> 11193 <a href="https://developer.apple.com/documentation/swiftui/view/navigationbaritems(leading:)">.navigationBarItems()</a> 11194 11195 11196 <span class="tag deprecated">Deprecated</span> 11197 11198 <span class="os-list"> 11199 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11200 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11201 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11202 </span> 11203 </p> 11204 11205 <p class="item-info">Sets the navigation bar items for this view.</p> 11206 11207 <p class="item-info">â Use toolbar(content:) with navigationBarLeading placement.</p> 11208</li> 11209 11210 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11211 <p> 11212 <a href="https://developer.apple.com/documentation/swiftui/view/navigationbartitle(_:)-6p1k7">.navigationBarTitle()</a> 11213 11214 11215 <span class="tag deprecated">Deprecated</span> 11216 11217 <span class="os-list"> 11218 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11219 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11220 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11221 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11222 </span> 11223 </p> 11224 11225 <p class="item-info">Sets the title in the navigation bar for this view.</p> 11226 11227 <p class="item-info">â Use navigationTitle(_:) instead.</p> 11228</li> 11229 11230 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11231 <p> 11232 <a href="https://developer.apple.com/documentation/swiftui/view/navigationviewstyle(_:)">.navigationViewStyle()</a> 11233 11234 11235 <span class="tag deprecated">Deprecated</span> 11236 11237 <span class="os-list"> 11238 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11239 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11240 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 11241 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11242 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11243 </span> 11244 </p> 11245 11246 <p class="item-info">Sets the style for navigation views within this view.</p> 11247 11248 <p class="item-info">â Replace a styled NavigationView with a NavigationStack or NavigationSplitView.</p> 11249</li> 11250 11251 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 11252 <p> 11253 <a href="https://developer.apple.com/documentation/swiftui/view/statusbar(hidden:)">.statusBar()</a> 11254 11255
11256 <span class="tag deprecated">Deprecated</span> 11257 11258 <span class="os-list"> 11259 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11260 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11261 </span> 11262 </p> 11263 11264 <p class="item-info">Sets the visibility of the status bar.</p> 11265 11266 <p class="item-info">â Use statusBarHidden(_:) instead.</p> 11267</li> 11268 11269 </ul> 11270 </div> 11271 </div> 11272 <div class="section all-platforms"> 11273 <h3>Scene Modifiers</h3> 11274 11275 11276 11277 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 11278 11279 <ul> 11280 <li class="empty"></li> 11281 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11282 <p> 11283 <a href="https://developer.apple.com/documentation/swiftui/scene/backgroundtask(_:action:)">.backgroundTask()</a> 11284 11285 11286 11287 <span class="os-list"> 11288 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 11289 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 11290 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 11291 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 11292 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11293 </span> 11294 </p> 11295 11296 <p class="item-info">Runs the specified action when the system provides a background task.</p> 11297 11298</li> 11299 11300 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 11301 <p> 11302 <a href="https://developer.apple.com/documentation/swiftui/scene/commands(content:)">.commands()</a> 11303 11304 11305 11306 <span class="os-list"> 11307 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 11308 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 11309 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11310 </span> 11311 </p> 11312 11313 <p class="item-info">Adds commands to the scene.</p> 11314 11315</li> 11316 11317 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 11318 <p> 11319 <a href="https://developer.apple.com/documentation/swiftui/scene/commandsremoved()">.commandsRemoved()</a> 11320 11321 11322 11323 <span class="os-list"> 11324 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 11325 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 11326 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11327 </span> 11328 </p> 11329 11330 <p class="item-info">Removes all commands defined by the modified scene.</p> 11331 11332</li> 11333 11334 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 11335 <p> 11336 <a href="https://developer.apple.com/documentation/swiftui/scene/commandsreplaced(content:)">.commandsReplaced()</a> 11337 11338 11339 11340 <span class="os-list"> 11341 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 11342 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 11343 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11344 </span> 11345 </p> 11346 11347 <p class="item-info">Replaces all commands defined by the modified scene with the commands from the builder.</p> 11348 11349</li> 11350 11351 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11352 <p> 11353 <a href="https://developer.apple.com/documentation/swiftui/scene/defaultappstorage(_:)">.defaultAppStorage()</a> 11354 11355 11356 11357 <span class="os-list"> 11358 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 11359 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 11360 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 11361 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 11362 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11363 </span> 11364 </p> 11365 11366 <p class="item-info">The default store used by AppStorage contained within the scene and its view content.</p> 11367 11368</li> 11369 11370 <li class="with-macOS"> 11371 <p> 11372 <a href="https://developer.apple.com/documentation/swiftui/scene/defaultposition(_:)">.defaultPosition()</a> 11373 11374 11375 11376 <span class="os-list"> 11377 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 11378 </span> 11379 </p> 11380 11381 <p class="item-info">Sets a default position for a window.</p> 11382 11383</li> 11384 11385 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 11386 <p> 11387 <a href="https://developer.apple.com/documentation/swiftui/scene/defaultsize(_:)-5y8n">.defaultSize()</a> 11388 11389 11390 11391 <span class="os-list">
11392 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11393 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 11394 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11395 </span> 11396 </p> 11397 11398 <p class="item-info">Sets a default size for a window.</p> 11399 11400</li> 11401 11402 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 11403 <p> 11404 <a href="https://developer.apple.com/documentation/swiftui/scene/handlesexternalevents(matching:)">.handlesExternalEvents()</a> 11405 11406 11407 11408 <span class="os-list"> 11409 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 11410 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 11411 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11412 </span> 11413 </p> 11414 11415 <p class="item-info">Specifies a modifier to indicate if this Scene can be used when creating a new Scene for the received External Event.</p> 11416 11417</li> 11418 11419 <li class="with-xrOS"> 11420 <p> 11421 <a href="https://developer.apple.com/documentation/swiftui/scene/immersionstyle(selection:in:)">.immersionStyle()</a> 11422 11423 11424 11425 <span class="os-list"> 11426 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11427 </span> 11428 </p> 11429 11430 <p class="item-info">Sets the allowed styles for the immersive space.</p> 11431 11432</li> 11433 11434 <li class="with-macOS"> 11435 <p> 11436 <a href="https://developer.apple.com/documentation/swiftui/scene/keyboardshortcut(_:)">.keyboardShortcut()</a> 11437 11438 11439 11440 <span class="os-list"> 11441 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 11442 </span> 11443 </p> 11444 11445 <p class="item-info">Defines a keyboard shortcut for opening new scene windows.</p> 11446 11447</li> 11448 11449 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS"> 11450 <p> 11451 <a href="https://developer.apple.com/documentation/swiftui/scene/modelcontainer(_:)">.modelContainer()</a> 11452 11453 <span class="tag">SwiftData</span> 11454 11455 11456 <span class="os-list"> 11457 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11458 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 11459 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 11460 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 11461 </span> 11462 </p> 11463 11464 <p class="item-info">Sets the model container and associated model context in this sceneâs environment.</p> 11465 11466</li> 11467 11468 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS"> 11469 <p> 11470 <a href="https://developer.apple.com/documentation/swiftui/scene/modelcontext(_:)">.modelContext()</a> 11471 11472 <span class="tag">SwiftData</span> 11473 11474 11475 <span class="os-list"> 11476 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11477 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 11478 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 11479 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 11480 </span> 11481 </p> 11482 11483 <p class="item-info">Sets the model context in this sceneâs environment.</p> 11484 11485</li> 11486 11487 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11488 <p> 11489 <a href="https://developer.apple.com/documentation/swiftui/scene/onchange(of:initial:_:)-7b6vh">.onChange()</a> 11490 11491 11492 11493 <span class="os-list"> 11494 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 11495 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 11496 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 11497 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 11498 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11499 </span> 11500 </p> 11501 11502 <p class="item-info">Adds an action to perform when the given value changes.</p> 11503 11504</li> 11505 11506 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 11507 <p> 11508 <a href="https://developer.apple.com/documentation/swiftui/scene/windowresizability(_:)">.windowResizability()</a> 11509 11510 11511 11512 <span class="os-list"> 11513 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11514 <span class="tag macOS" data-version="13.0">macOS 13.0</span>
11515 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11516 </span> 11517 </p> 11518 11519 <p class="item-info">Sets the kind of resizability to use for a window.</p> 11520 11521</li> 11522 11523 <li class="with-macOS with-xrOS"> 11524 <p> 11525 <a href="https://developer.apple.com/documentation/swiftui/scene/windowstyle(_:)">.windowStyle()</a> 11526 11527 11528 11529 <span class="os-list"> 11530 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 11531 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11532 </span> 11533 </p> 11534 11535 <p class="item-info">Sets the style for windows created by this scene.</p> 11536 11537</li> 11538 11539 <li class="with-macOS"> 11540 <p> 11541 <a href="https://developer.apple.com/documentation/swiftui/scene/windowtoolbarstyle(_:)">.windowToolbarStyle()</a> 11542 11543 11544 11545 <span class="os-list"> 11546 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 11547 </span> 11548 </p> 11549 11550 <p class="item-info">Sets the style for the toolbar defined within this scene.</p> 11551 11552</li> 11553 11554 </ul> 11555 </div> 11556 </div> 11557 <div class="section all-platforms"> 11558 <h3>Environment Values</h3> 11559 11560 11561 11562 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 11563 11564 <ul> 11565 <li class="empty"></li> 11566 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11567 <p> 11568 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilitydifferentiatewithoutcolor">\.accessibilityDifferentiateWithoutColor</a> 11569 11570 11571 11572 <span class="os-list"> 11573 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11574 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11575 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11576 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11577 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11578 </span> 11579 </p> 11580 11581 <p class="item-info">Whether the system preference for Differentiate without Color is enabled.</p> 11582 11583</li> 11584 11585 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11586 <p> 11587 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilitydimflashinglights">\.accessibilityDimFlashingLights</a> 11588 11589 11590 11591 <span class="os-list"> 11592 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11593 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 11594 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 11595 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 11596 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11597 </span> 11598 </p> 11599 11600 <p class="item-info">Whether the setting to reduce flashing or strobing lights in video content is on. This setting can also be used to determine if UI in playback controls should be shown to indicate upcoming content that includes flashing or strobing lights.</p> 11601 11602</li> 11603 11604 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11605 <p> 11606 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilityenabled">\.accessibilityEnabled</a> 11607 11608 11609 11610 <span class="os-list"> 11611 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11612 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11613 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11614 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11615 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11616 </span> 11617 </p> 11618 11619 <p class="item-info">A Boolean value that indicates whether the user has enabled an assistive technology.</p> 11620 11621</li> 11622 11623 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11624 <p> 11625 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilityinvertcolors">\.accessibilityInvertColors</a> 11626 11627 11628 11629 <span class="os-list"> 11630 <span class="tag iOS" data-version="13.0">iOS 13.0</span>
11631 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11632 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11633 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11634 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11635 </span> 11636 </p> 11637 11638 <p class="item-info">Whether the system preference for Invert Colors is enabled.</p> 11639 11640</li> 11641 11642 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11643 <p> 11644 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilitylargecontentviewerenabled">\.accessibilityLargeContentViewerEnabled</a> 11645 11646 11647 11648 <span class="os-list"> 11649 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 11650 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 11651 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 11652 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 11653 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11654 </span> 11655 </p> 11656 11657 <p class="item-info">Whether the Large Content Viewer is enabled.</p> 11658 11659</li> 11660 11661 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11662 <p> 11663 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilityplayanimatedimages">\.accessibilityPlayAnimatedImages</a> 11664 11665 11666 11667 <span class="os-list"> 11668 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11669 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 11670 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 11671 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 11672 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11673 </span> 11674 </p> 11675 11676 <p class="item-info">Whether the setting for playing animations in an animated image is on. When this value is false, any presented image that contains animation should not play automatically.</p> 11677 11678</li> 11679 11680 <li class="with-xrOS"> 11681 <p> 11682 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilitypreferscameraanchoralternative">\.accessibilityPrefersCameraAnchorAlternative</a> 11683 11684 11685 11686 <span class="os-list"> 11687 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11688 </span> 11689 </p> 11690 11691 <p class="item-info">Whether the system setting to prefer alternatives to camera-anchored content is on.</p> 11692 11693</li> 11694 11695 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11696 <p> 11697 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilityquickactionsenabled">\.accessibilityQuickActionsEnabled</a> 11698 11699 11700 11701 <span class="os-list"> 11702 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 11703 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 11704 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 11705 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 11706 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11707 </span> 11708 </p> 11709 11710 <p class="item-info">A Boolean that indicates whether the quick actions feature is enabled.</p> 11711 11712</li> 11713 11714 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11715 <p> 11716 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilityreducemotion">\.accessibilityReduceMotion</a> 11717 11718 11719 11720 <span class="os-list"> 11721 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11722 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11723 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11724 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11725 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11726 </span> 11727 </p> 11728 11729 <p class="item-info">Whether the system preference for Reduce Motion is enabled.</p> 11730 11731</li> 11732 11733 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11734 <p> 11735 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilityreducetransparency">\.accessibilityReduceTransparency</a> 11736 11737 11738 11739 <span class="os-list">
11740 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11741 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11742 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11743 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11744 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11745 </span> 11746 </p> 11747 11748 <p class="item-info">Whether the system preference for Reduce Transparency is enabled.</p> 11749 11750</li> 11751 11752 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11753 <p> 11754 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilityshowbuttonshapes">\.accessibilityShowButtonShapes</a> 11755 11756 11757 11758 <span class="os-list"> 11759 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 11760 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 11761 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 11762 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 11763 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11764 </span> 11765 </p> 11766 11767 <p class="item-info">Whether the system preference for Show Button Shapes is enabled.</p> 11768 11769</li> 11770 11771 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11772 <p> 11773 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilityswitchcontrolenabled">\.accessibilitySwitchControlEnabled</a> 11774 11775 11776 11777 <span class="os-list"> 11778 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 11779 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 11780 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 11781 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 11782 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11783 </span> 11784 </p> 11785 11786 <p class="item-info">A Boolean value that indicates whether the Switch Control motor accessibility feature is in use.</p> 11787 11788</li> 11789 11790 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11791 <p> 11792 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/accessibilityvoiceoverenabled">\.accessibilityVoiceOverEnabled</a> 11793 11794 11795 11796 <span class="os-list"> 11797 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 11798 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 11799 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 11800 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 11801 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11802 </span> 11803 </p> 11804 11805 <p class="item-info">A Boolean value that indicates whether the VoiceOver screen reader is in use.</p> 11806 11807</li> 11808 11809 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 11810 <p> 11811 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/alloweddynamicrange">\.allowedDynamicRange</a> 11812 11813 11814 11815 <span class="os-list"> 11816 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11817 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 11818 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 11819 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11820 </span> 11821 </p> 11822 11823 <p class="item-info">The allowed dynamic range for the view, or nil.</p> 11824 11825</li> 11826 11827 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11828 <p> 11829 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/allowstightening">\.allowsTightening</a> 11830 11831 11832 11833 <span class="os-list"> 11834 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11835 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11836 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11837 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11838 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11839 </span> 11840 </p> 11841 11842 <p class="item-info">A Boolean value that indicates whether inter-character spacing should tighten to fit the text into the available space.</p> 11843 11844</li> 11845 11846 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS"> 11847 <p> 11848 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/authorizationcontroller">\.authorizationController</a> 11849
11850 <span class="tag">AuthenticationServices</span> 11851 11852 11853 <span class="os-list"> 11854 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 11855 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 11856 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 11857 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 11858 </span> 11859 </p> 11860 11861 <p class="item-info">A value provided in the SwiftUI environment that views can use to perform authorization requests.</p> 11862 11863</li> 11864 11865 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11866 <p> 11867 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/autocorrectiondisabled">\.autocorrectionDisabled</a> 11868 11869 11870 11871 <span class="os-list"> 11872 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11873 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11874 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 11875 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11876 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11877 </span> 11878 </p> 11879 11880 <p class="item-info">A Boolean value that determines whether the view hierarchy has auto-correction enabled.</p> 11881 11882</li> 11883 11884 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11885 <p> 11886 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/backgroundmaterial">\.backgroundMaterial</a> 11887 11888 11889 11890 <span class="os-list"> 11891 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 11892 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 11893 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 11894 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 11895 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11896 </span> 11897 </p> 11898 11899 <p class="item-info">The material underneath the current view.</p> 11900 11901</li> 11902 11903 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11904 <p> 11905 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/backgroundprominence">\.backgroundProminence</a> 11906 11907 11908 11909 <span class="os-list"> 11910 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11911 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 11912 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 11913 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 11914 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11915 </span> 11916 </p> 11917 11918 <p class="item-info">The prominence of the background underneath views associated with this environment.</p> 11919 11920</li> 11921 11922 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11923 <p> 11924 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/backgroundstyle">\.backgroundStyle</a> 11925 11926 11927 11928 <span class="os-list"> 11929 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 11930 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 11931 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 11932 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 11933 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11934 </span> 11935 </p> 11936 11937 <p class="item-info">An optional style that overrides the default system background style when set.</p> 11938 11939</li> 11940 11941 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 11942 <p> 11943 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/badgeprominence">\.badgeProminence</a> 11944 11945 11946 11947 <span class="os-list"> 11948 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11949 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 11950 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11951 </span> 11952 </p> 11953 11954 <p class="item-info">The prominence to apply to badges associated with this environment.</p> 11955 11956</li> 11957 11958 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11959 <p> 11960 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/buttonrepeatbehavior">\.buttonRepeatBehavior</a> 11961 11962 11963 11964 <span class="os-list">
11965 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 11966 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 11967 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 11968 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 11969 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11970 </span> 11971 </p> 11972 11973 <p class="item-info">Whether buttons with this associated environment should repeatedly trigger their actions on prolonged interactions.</p> 11974 11975</li> 11976 11977 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11978 <p> 11979 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/calendar">\.calendar</a> 11980 11981 11982 11983 <span class="os-list"> 11984 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 11985 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 11986 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 11987 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 11988 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 11989 </span> 11990 </p> 11991 11992 <p class="item-info">The current calendar that views should use when handling dates.</p> 11993 11994</li> 11995 11996 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 11997 <p> 11998 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/colorscheme">\.colorScheme</a> 11999 12000 12001 12002 <span class="os-list"> 12003 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12004 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12005 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12006 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12007 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12008 </span> 12009 </p> 12010 12011 <p class="item-info">The color scheme of this environment.</p> 12012 12013</li> 12014 12015 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12016 <p> 12017 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/colorschemecontrast">\.colorSchemeContrast</a> 12018 12019 12020 12021 <span class="os-list"> 12022 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12023 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12024 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12025 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12026 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12027 </span> 12028 </p> 12029 12030 <p class="item-info">The contrast associated with the color scheme of this environment.</p> 12031 12032</li> 12033 12034 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12035 <p> 12036 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/contenttransition">\.contentTransition</a> 12037 12038 12039 12040 <span class="os-list"> 12041 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 12042 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 12043 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 12044 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 12045 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12046 </span> 12047 </p> 12048 12049 <p class="item-info">The current method of animating the contents of views.</p> 12050 12051</li> 12052 12053 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12054 <p> 12055 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/contenttransitionaddsdrawinggroup">\.contentTransitionAddsDrawingGroup</a> 12056 12057 12058 12059 <span class="os-list"> 12060 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 12061 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 12062 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 12063 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 12064 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12065 </span> 12066 </p> 12067 12068 <p class="item-info">A Boolean value that controls whether views that render content transitions use GPU-accelerated rendering.</p> 12069 12070</li> 12071 12072 <li class="with-macOS"> 12073 <p> 12074 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/controlactivestate">\.controlActiveState</a> 12075 12076 12077 12078 <span class="os-list">
12079 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12080 </span> 12081 </p> 12082 12083 <p class="item-info">The active state of controls in the view.</p> 12084 12085</li> 12086 12087 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 12088 <p> 12089 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/controlsize">\.controlSize</a> 12090 12091 12092 12093 <span class="os-list"> 12094 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 12095 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12096 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 12097 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12098 </span> 12099 </p> 12100 12101 <p class="item-info">The size to apply to controls within a view.</p> 12102 12103</li> 12104 12105 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12106 <p> 12107 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/defaultminlistheaderheight">\.defaultMinListHeaderHeight</a> 12108 12109 12110 12111 <span class="os-list"> 12112 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12113 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12114 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12115 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12116 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12117 </span> 12118 </p> 12119 12120 <p class="item-info">The default minimum height of a header in a list.</p> 12121 12122</li> 12123 12124 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12125 <p> 12126 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/defaultminlistrowheight">\.defaultMinListRowHeight</a> 12127 12128 12129 12130 <span class="os-list"> 12131 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12132 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12133 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12134 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12135 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12136 </span> 12137 </p> 12138 12139 <p class="item-info">The default minimum height of a row in a list.</p> 12140 12141</li> 12142 12143 <li class="with-watchOS"> 12144 <p> 12145 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/defaultwheelpickeritemheight">\.defaultWheelPickerItemHeight</a> 12146 12147 12148 12149 <span class="os-list"> 12150 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12151 </span> 12152 </p> 12153 12154 <p class="item-info">The default height of an item in a wheel-style picker, such as a date picker.</p> 12155 12156</li> 12157 12158 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12159 <p> 12160 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/description">\.description</a> 12161 12162 12163 12164 <span class="os-list"> 12165 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12166 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12167 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12168 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12169 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12170 </span> 12171 </p> 12172 12173 <p class="item-info">A string that represents the contents of the environment values instance.</p> 12174 12175</li> 12176 12177 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12178 <p> 12179 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/disableautocorrection">\.disableAutocorrection</a> 12180 12181 12182 <span class="tag deprecated">Deprecated</span> 12183 12184 <span class="os-list"> 12185 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12186 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12187 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 12188 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12189 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12190 </span> 12191 </p> 12192 12193 <p class="item-info">A Boolean value that determines whether the view hierarchy has auto-correction enabled.</p> 12194 12195</li> 12196 12197 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12198 <p> 12199 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/dismiss">\.dismiss</a> 12200 12201 12202 12203 <span class="os-list">
12204 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 12205 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 12206 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 12207 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 12208 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12209 </span> 12210 </p> 12211 12212 <p class="item-info">An action that dismisses the current presentation.</p> 12213 12214</li> 12215 12216 <li class="with-xrOS"> 12217 <p> 12218 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/dismissimmersivespace">\.dismissImmersiveSpace</a> 12219 12220 12221 12222 <span class="os-list"> 12223 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12224 </span> 12225 </p> 12226 12227 <p class="item-info">An immersive space dismissal action stored in a viewâs environment.</p> 12228 12229</li> 12230 12231 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12232 <p> 12233 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/dismisssearch">\.dismissSearch</a> 12234 12235 12236 12237 <span class="os-list"> 12238 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 12239 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 12240 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 12241 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 12242 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12243 </span> 12244 </p> 12245 12246 <p class="item-info">An action that ends the current search interaction.</p> 12247 12248</li> 12249 12250 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 12251 <p> 12252 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/dismisswindow">\.dismissWindow</a> 12253 12254 12255 12256 <span class="os-list"> 12257 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 12258 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 12259 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12260 </span> 12261 </p> 12262 12263 <p class="item-info">A window dismissal action stored in a viewâs environment.</p> 12264 12265</li> 12266 12267 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12268 <p> 12269 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/displayscale">\.displayScale</a> 12270 12271 12272 12273 <span class="os-list"> 12274 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12275 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12276 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12277 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12278 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12279 </span> 12280 </p> 12281 12282 <p class="item-info">The display scale of this environment.</p> 12283 12284</li> 12285 12286 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 12287 <p> 12288 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/displaystorekitmessage">\.displayStoreKitMessage</a> 12289 12290 <span class="tag">StoreKit</span> 12291 12292 12293 <span class="os-list"> 12294 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 12295 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12296 </span> 12297 </p> 12298 12299 12300</li> 12301 12302 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 12303 <p> 12304 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/documentconfiguration">\.documentConfiguration</a> 12305 12306 12307 12308 <span class="os-list"> 12309 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 12310 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 12311 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12312 </span> 12313 </p> 12314 12315 <p class="item-info">The configuration of a document in a DocumentGroup.</p> 12316 12317</li> 12318 12319 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12320 <p> 12321 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/dynamictypesize">\.dynamicTypeSize</a> 12322 12323 12324 12325 <span class="os-list">
12326 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 12327 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 12328 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 12329 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 12330 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12331 </span> 12332 </p> 12333 12334 <p class="item-info">The current Dynamic Type size.</p> 12335 12336</li> 12337 12338 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 12339 <p> 12340 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/editmode">\.editMode</a> 12341 12342 12343 12344 <span class="os-list"> 12345 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12346 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12347 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12348 </span> 12349 </p> 12350 12351 <p class="item-info">An indication of whether the user can edit the contents of a view associated with this environment.</p> 12352 12353</li> 12354 12355 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12356 <p> 12357 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/font">\.font</a> 12358 12359 12360 12361 <span class="os-list"> 12362 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12363 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12364 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12365 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12366 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12367 </span> 12368 </p> 12369 12370 <p class="item-info">The default font of this environment.</p> 12371 12372</li> 12373 12374 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12375 <p> 12376 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/headerprominence">\.headerProminence</a> 12377 12378 12379 12380 <span class="os-list"> 12381 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 12382 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 12383 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 12384 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 12385 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12386 </span> 12387 </p> 12388 12389 <p class="item-info">The prominence to apply to section headers within a view.</p> 12390 12391</li> 12392 12393 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12394 <p> 12395 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/horizontalscrollbouncebehavior">\.horizontalScrollBounceBehavior</a> 12396 12397 12398 12399 <span class="os-list"> 12400 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 12401 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 12402 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 12403 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 12404 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12405 </span> 12406 </p> 12407 12408 <p class="item-info">The scroll bounce mode for the horizontal axis of scrollable views.</p> 12409 12410</li> 12411 12412 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12413 <p> 12414 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/horizontalscrollindicatorvisibility">\.horizontalScrollIndicatorVisibility</a> 12415 12416 12417 12418 <span class="os-list"> 12419 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 12420 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 12421 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 12422 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 12423 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12424 </span> 12425 </p> 12426 12427 <p class="item-info">The visibility to apply to scroll indicators of any horizontally scrollable content.</p> 12428 12429</li> 12430 12431 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12432 <p> 12433 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/horizontalsizeclass">\.horizontalSizeClass</a> 12434 12435 12436 12437 <span class="os-list">
12438 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12439 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12440 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12441 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12442 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12443 </span> 12444 </p> 12445 12446 <p class="item-info">The horizontal size class of this environment.</p> 12447 12448</li> 12449 12450 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12451 <p> 12452 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/imagescale">\.imageScale</a> 12453 12454 12455 12456 <span class="os-list"> 12457 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12458 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 12459 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12460 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12461 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12462 </span> 12463 </p> 12464 12465 <p class="item-info">The image scale for this environment.</p> 12466 12467</li> 12468 12469 <li class="with-iOS with-iPadOS with-Catalyst with-xrOS"> 12470 <p> 12471 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/isactivityfullscreen">\.isActivityFullscreen</a> 12472 12473 <span class="tag">WidgetKit</span> 12474 12475 12476 <span class="os-list"> 12477 <span class="tag iOS" data-version="16.1">iOS 16.1</span> 12478 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12479 </span> 12480 </p> 12481 12482 <p class="item-info">A Boolean value that indicates whether the Live Activity appears in a full-screen presentation.</p> 12483 12484</li> 12485 12486 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12487 <p> 12488 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/isenabled">\.isEnabled</a> 12489 12490 12491 12492 <span class="os-list"> 12493 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12494 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12495 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12496 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12497 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12498 </span> 12499 </p> 12500 12501 <p class="item-info">A Boolean value that indicates whether the view associated with this environment allows user interaction.</p> 12502 12503</li> 12504 12505 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12506 <p> 12507 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/isfocused">\.isFocused</a> 12508 12509 12510 12511 <span class="os-list"> 12512 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 12513 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 12514 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 12515 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 12516 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12517 </span> 12518 </p> 12519 12520 <p class="item-info">Returns whether the nearest focusable ancestor has focus.</p> 12521 12522</li> 12523 12524 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12525 <p> 12526 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/isfocuseffectenabled">\.isFocusEffectEnabled</a> 12527 12528 12529 12530 <span class="os-list"> 12531 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 12532 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 12533 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 12534 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 12535 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12536 </span> 12537 </p> 12538 12539 <p class="item-info">A Boolean value that indicates whether the view associated with this environment allows focus effects to be displayed.</p> 12540 12541</li> 12542 12543 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 12544 <p> 12545 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/ishovereffectenabled">\.isHoverEffectEnabled</a> 12546 12547 12548 12549 <span class="os-list">
12550 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 12551 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 12552 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12553 </span> 12554 </p> 12555 12556 <p class="item-info">A Boolean value that indicates whether the view associated with this environment allows hover effects to be displayed.</p> 12557 12558</li> 12559 12560 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12561 <p> 12562 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/isluminancereduced">\.isLuminanceReduced</a> 12563 12564 12565 12566 <span class="os-list"> 12567 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 12568 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 12569 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 12570 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 12571 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12572 </span> 12573 </p> 12574 12575 <p class="item-info">A Boolean value that indicates whether the display or environment currently requires reduced luminance.</p> 12576 12577</li> 12578 12579 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12580 <p> 12581 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/ispresented">\.isPresented</a> 12582 12583 12584 12585 <span class="os-list"> 12586 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 12587 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 12588 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 12589 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 12590 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12591 </span> 12592 </p> 12593 12594 <p class="item-info">A Boolean value that indicates whether the view associated with this environment is currently presented.</p> 12595 12596</li> 12597 12598 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12599 <p> 12600 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/isscrollenabled">\.isScrollEnabled</a> 12601 12602 12603 12604 <span class="os-list"> 12605 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 12606 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 12607 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 12608 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 12609 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12610 </span> 12611 </p> 12612 12613 <p class="item-info">A Boolean value that indicates whether any scroll views associated with this environment allow scrolling to occur.</p> 12614 12615</li> 12616 12617 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12618 <p> 12619 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/issearching">\.isSearching</a> 12620 12621 12622 12623 <span class="os-list"> 12624 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 12625 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 12626 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 12627 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 12628 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12629 </span> 12630 </p> 12631 12632 <p class="item-info">A Boolean value that indicates when the user is searching.</p> 12633 12634</li> 12635 12636 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 12637 <p> 12638 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/keyboardshortcut">\.keyboardShortcut</a> 12639 12640 12641 12642 <span class="os-list"> 12643 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 12644 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 12645 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12646 </span> 12647 </p> 12648 12649 <p class="item-info">The keyboard shortcut that buttons in this environment will be triggered with.</p> 12650 12651</li> 12652 12653 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12654 <p> 12655 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/layoutdirection">\.layoutDirection</a> 12656 12657 12658 12659 <span class="os-list">
12660 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12661 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12662 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12663 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12664 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12665 </span> 12666 </p> 12667 12668 <p class="item-info">The layout direction associated with the current environment.</p> 12669 12670</li> 12671 12672 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12673 <p> 12674 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/legibilityweight">\.legibilityWeight</a> 12675 12676 12677 12678 <span class="os-list"> 12679 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12680 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12681 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12682 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12683 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12684 </span> 12685 </p> 12686 12687 <p class="item-info">The font weight to apply to text.</p> 12688 12689</li> 12690 12691 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12692 <p> 12693 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/linelimit">\.lineLimit</a> 12694 12695 12696 12697 <span class="os-list"> 12698 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12699 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12700 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12701 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12702 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12703 </span> 12704 </p> 12705 12706 <p class="item-info">The maximum number of lines that text can occupy in a view.</p> 12707 12708</li> 12709 12710 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12711 <p> 12712 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/linespacing">\.lineSpacing</a> 12713 12714 12715 12716 <span class="os-list"> 12717 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12718 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12719 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12720 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12721 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12722 </span> 12723 </p> 12724 12725 <p class="item-info">The distance in points between the bottom of one line fragment and the top of the next.</p> 12726 12727</li> 12728 12729 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12730 <p> 12731 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/locale">\.locale</a> 12732 12733 12734 12735 <span class="os-list"> 12736 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12737 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12738 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12739 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12740 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12741 </span> 12742 </p> 12743 12744 <p class="item-info">The current locale that views should use.</p> 12745 12746</li> 12747 12748 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12749 <p> 12750 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/managedobjectcontext">\.managedObjectContext</a> 12751 12752 12753 12754 <span class="os-list"> 12755 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12756 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12757 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12758 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12759 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12760 </span> 12761 </p> 12762 12763 12764</li> 12765 12766 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-tvOS with-xrOS"> 12767 <p> 12768 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/menuindicatorvisibility">\.menuIndicatorVisibility</a> 12769 12770 12771 12772 <span class="os-list">
12773 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 12774 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 12775 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 12776 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12777 </span> 12778 </p> 12779 12780 <p class="item-info">The menu indicator visibility to apply to controls within a view.</p> 12781 12782</li> 12783 12784 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12785 <p> 12786 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/menuorder">\.menuOrder</a> 12787 12788 12789 12790 <span class="os-list"> 12791 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 12792 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 12793 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 12794 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 12795 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12796 </span> 12797 </p> 12798 12799 <p class="item-info">The preferred order of items for menus presented from this view.</p> 12800 12801</li> 12802 12803 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12804 <p> 12805 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/minimumscalefactor">\.minimumScaleFactor</a> 12806 12807 12808 12809 <span class="os-list"> 12810 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12811 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12812 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12813 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12814 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12815 </span> 12816 </p> 12817 12818 <p class="item-info">The minimum permissible proportion to shrink the font size to fit the text into the available space.</p> 12819 12820</li> 12821 12822 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS"> 12823 <p> 12824 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/modelcontext">\.modelContext</a> 12825 12826 <span class="tag">SwiftData</span> 12827 12828 12829 <span class="os-list"> 12830 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 12831 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 12832 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 12833 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 12834 </span> 12835 </p> 12836 12837 <p class="item-info">The SwiftData model context that will be used for queries and other model operations within this environment.</p> 12838 12839</li> 12840 12841 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12842 <p> 12843 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/multilinetextalignment">\.multilineTextAlignment</a> 12844 12845 12846 12847 <span class="os-list"> 12848 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12849 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12850 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12851 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12852 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12853 </span> 12854 </p> 12855 12856 <p class="item-info">An environment value that indicates how a text view aligns its lines when the content wraps or contains newlines.</p> 12857 12858</li> 12859 12860 <li class="with-macOS"> 12861 <p> 12862 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/newdocument">\.newDocument</a> 12863 12864 12865 12866 <span class="os-list"> 12867 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 12868 </span> 12869 </p> 12870 12871 <p class="item-info">An action in the environment that presents a new document.</p> 12872 12873</li> 12874 12875 <li class="with-macOS"> 12876 <p> 12877 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/opendocument">\.openDocument</a> 12878 12879 12880 12881 <span class="os-list"> 12882 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 12883 </span> 12884 </p> 12885 12886 <p class="item-info">An action in the environment that presents an existing document.</p> 12887 12888</li> 12889 12890 <li class="with-xrOS"> 12891 <p> 12892 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/openimmersivespace">\.openImmersiveSpace</a> 12893 12894 12895 12896 <span class="os-list">
12897 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12898 </span> 12899 </p> 12900 12901 <p class="item-info">An action that presents an immersive space.</p> 12902 12903</li> 12904 12905 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12906 <p> 12907 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/openurl">\.openURL</a> 12908 12909 12910 12911 <span class="os-list"> 12912 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 12913 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 12914 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 12915 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 12916 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12917 </span> 12918 </p> 12919 12920 <p class="item-info">An action that opens a URL.</p> 12921 12922</li> 12923 12924 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 12925 <p> 12926 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/openwindow">\.openWindow</a> 12927 12928 12929 12930 <span class="os-list"> 12931 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 12932 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 12933 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12934 </span> 12935 </p> 12936 12937 <p class="item-info">An window presentation action stored in a viewâs environment.</p> 12938 12939</li> 12940 12941 <li class="with-xrOS"> 12942 <p> 12943 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/physicalmetrics">\.physicalMetrics</a> 12944 12945 12946 12947 <span class="os-list"> 12948 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12949 </span> 12950 </p> 12951 12952 <p class="item-info">The physical metrics associated with a scene.</p> 12953 12954</li> 12955 12956 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12957 <p> 12958 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/pixellength">\.pixelLength</a> 12959 12960 12961 12962 <span class="os-list"> 12963 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12964 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12965 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12966 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12967 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12968 </span> 12969 </p> 12970 12971 <p class="item-info">The size of a pixel on the screen.</p> 12972 12973</li> 12974 12975 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12976 <p> 12977 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/presentationmode">\.presentationMode</a> 12978 12979 12980 <span class="tag deprecated">Deprecated</span> 12981 12982 <span class="os-list"> 12983 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 12984 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 12985 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 12986 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 12987 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 12988 </span> 12989 </p> 12990 12991 <p class="item-info">A binding to the current presentation mode of the view associated with this environment.</p> 12992 12993 <p class="item-info">â Use isPresented or dismiss instead.</p> 12994</li> 12995 12996 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 12997 <p> 12998 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/purchase">\.purchase</a> 12999 13000 <span class="tag">StoreKit</span> 13001 13002 13003 <span class="os-list"> 13004 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 13005 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 13006 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 13007 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 13008 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13009 </span> 13010 </p> 13011 13012 <p class="item-info">An action that starts an in-app purchase.</p> 13013 13014</li> 13015 13016 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13017 <p> 13018 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/redactionreasons">\.redactionReasons</a> 13019 13020 13021 13022 <span class="os-list">
13023 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13024 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13025 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13026 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13027 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13028 </span> 13029 </p> 13030 13031 <p class="item-info">The current redaction reasons applied to the view hierarchy.</p> 13032 13033</li> 13034 13035 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13036 <p> 13037 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/refresh">\.refresh</a> 13038 13039 13040 13041 <span class="os-list"> 13042 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 13043 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 13044 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 13045 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 13046 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13047 </span> 13048 </p> 13049 13050 <p class="item-info">A refresh action stored in a viewâs environment.</p> 13051 13052</li> 13053 13054 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13055 <p> 13056 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/rename">\.rename</a> 13057 13058 13059 13060 <span class="os-list"> 13061 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13062 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 13063 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 13064 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 13065 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13066 </span> 13067 </p> 13068 13069 <p class="item-info">An action that activates the standard rename interaction.</p> 13070 13071</li> 13072 13073 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-xrOS"> 13074 <p> 13075 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/requestreview">\.requestReview</a> 13076 13077 <span class="tag">StoreKit</span> 13078 13079 13080 <span class="os-list"> 13081 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13082 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 13083 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13084 </span> 13085 </p> 13086 13087 13088</li> 13089 13090 <li class="with-macOS with-watchOS with-tvOS"> 13091 <p> 13092 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/resetfocus">\.resetFocus</a> 13093 13094 13095 13096 <span class="os-list"> 13097 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 13098 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13099 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13100 </span> 13101 </p> 13102 13103 <p class="item-info">An action that requests the focus system to reevaluate default focus.</p> 13104 13105</li> 13106 13107 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13108 <p> 13109 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/scenephase">\.scenePhase</a> 13110 13111 13112 13113 <span class="os-list"> 13114 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13115 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13116 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13117 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13118 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13119 </span> 13120 </p> 13121 13122 <p class="item-info">The current phase of the scene.</p> 13123 13124</li> 13125 13126 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS"> 13127 <p> 13128 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/scrolldismisseskeyboardmode">\.scrollDismissesKeyboardMode</a> 13129 13130 13131 13132 <span class="os-list"> 13133 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13134 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 13135 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span>
13136 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 13137 </span> 13138 </p> 13139 13140 <p class="item-info">The way that scrollable content interacts with the software keyboard.</p> 13141 13142</li> 13143 13144 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13145 <p> 13146 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/searchsuggestionsplacement">\.searchSuggestionsPlacement</a> 13147 13148 13149 13150 <span class="os-list"> 13151 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13152 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 13153 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 13154 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 13155 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13156 </span> 13157 </p> 13158 13159 <p class="item-info">The current placement of search suggestions.</p> 13160 13161</li> 13162 13163 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 13164 <p> 13165 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/showswidgetcontainerbackground">\.showsWidgetContainerBackground</a> 13166 13167 <span class="tag">WidgetKit</span> 13168 13169 13170 <span class="os-list"> 13171 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 13172 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 13173 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 13174 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13175 </span> 13176 </p> 13177 13178 <p class="item-info">An environment variable that indicates whether the background of a widget appears.</p> 13179 13180</li> 13181 13182 <li class="with-iOS with-iPadOS with-Catalyst with-watchOS with-xrOS"> 13183 <p> 13184 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/showswidgetlabel">\.showsWidgetLabel</a> 13185 13186 <span class="tag">WidgetKit</span> 13187 13188 13189 <span class="os-list"> 13190 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13191 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 13192 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13193 </span> 13194 </p> 13195 13196 <p class="item-info">A Boolean value that indicates whether an accessory family widget can display an accessory label.</p> 13197 13198</li> 13199 13200 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13201 <p> 13202 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/sidebarrowsize">\.sidebarRowSize</a> 13203 13204 13205 13206 <span class="os-list"> 13207 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13208 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 13209 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 13210 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 13211 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13212 </span> 13213 </p> 13214 13215 <p class="item-info">The current size of sidebar rows.</p> 13216 13217</li> 13218 13219 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13220 <p> 13221 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/sizecategory">\.sizeCategory</a> 13222 13223 13224 <span class="tag deprecated">Deprecated</span> 13225 13226 <span class="os-list"> 13227 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13228 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13229 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13230 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13231 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13232 </span> 13233 </p> 13234 13235 <p class="item-info">The size of content.</p> 13236 13237 <p class="item-info">â Use dynamicTypeSize instead.</p> 13238</li> 13239 13240 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13241 <p> 13242 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/springloadingbehavior">\.springLoadingBehavior</a> 13243 13244 13245 13246 <span class="os-list"> 13247 <span class="tag iOS" data-version="17.0">iOS 17.0</span>
13248 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 13249 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 13250 <span class="tag tvOS" data-version="17.0">tvOS 17.0</span> 13251 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13252 </span> 13253 </p> 13254 13255 <p class="item-info">The behavior of spring loaded interactions for the views associated with this environment.</p> 13256 13257</li> 13258 13259 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13260 <p> 13261 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/supportsmultiplewindows">\.supportsMultipleWindows</a> 13262 13263 13264 13265 <span class="os-list"> 13266 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13267 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 13268 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 13269 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 13270 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13271 </span> 13272 </p> 13273 13274 <p class="item-info">A Boolean value that indicates whether the current platform supports opening multiple windows.</p> 13275 13276</li> 13277 13278 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13279 <p> 13280 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/symbolrenderingmode">\.symbolRenderingMode</a> 13281 13282 13283 13284 <span class="os-list"> 13285 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 13286 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 13287 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 13288 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 13289 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13290 </span> 13291 </p> 13292 13293 <p class="item-info">The current symbol rendering mode, or nil denoting that the mode is picked automatically using the current image and foreground style as parameters.</p> 13294 13295</li> 13296 13297 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13298 <p> 13299 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/symbolvariants">\.symbolVariants</a> 13300 13301 13302 13303 <span class="os-list"> 13304 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 13305 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 13306 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 13307 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 13308 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13309 </span> 13310 </p> 13311 13312 <p class="item-info">The symbol variant to use in this environment.</p> 13313 13314</li> 13315 13316 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13317 <p> 13318 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/textcase">\.textCase</a> 13319 13320 13321 13322 <span class="os-list"> 13323 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13324 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13325 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13326 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13327 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13328 </span> 13329 </p> 13330 13331 <p class="item-info">A stylistic override to transform the case of Text when displayed, using the environmentâs locale.</p> 13332 13333</li> 13334 13335 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13336 <p> 13337 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/timezone">\.timeZone</a> 13338 13339 13340 13341 <span class="os-list"> 13342 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13343 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13344 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13345 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13346 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13347 </span> 13348 </p> 13349 13350 <p class="item-info">The current time zone that views should use when handling dates.</p> 13351 13352</li> 13353 13354 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13355 <p> 13356 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/truncationmode">\.truncationMode</a> 13357 13358 13359 13360 <span class="os-list">
13361 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13362 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13363 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13364 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13365 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13366 </span> 13367 </p> 13368 13369 <p class="item-info">A value that indicates how the layout truncates the last line of text to fit into the available space.</p> 13370 13371</li> 13372 13373 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13374 <p> 13375 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/undomanager">\.undoManager</a> 13376 13377 13378 13379 <span class="os-list"> 13380 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13381 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13382 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13383 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13384 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13385 </span> 13386 </p> 13387 13388 <p class="item-info">The undo manager used to register a viewâs undo operations.</p> 13389 13390</li> 13391 13392 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13393 <p> 13394 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/verticalscrollbouncebehavior">\.verticalScrollBounceBehavior</a> 13395 13396 13397 13398 <span class="os-list"> 13399 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 13400 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 13401 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 13402 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 13403 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13404 </span> 13405 </p> 13406 13407 <p class="item-info">The scroll bounce mode for the vertical axis of scrollable views.</p> 13408 13409</li> 13410 13411 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13412 <p> 13413 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/verticalscrollindicatorvisibility">\.verticalScrollIndicatorVisibility</a> 13414 13415 13416 13417 <span class="os-list"> 13418 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13419 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 13420 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 13421 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 13422 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13423 </span> 13424 </p> 13425 13426 <p class="item-info">The visiblity to apply to scroll indicators of any vertically scrollable content.</p> 13427 13428</li> 13429 13430 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13431 <p> 13432 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/verticalsizeclass">\.verticalSizeClass</a> 13433 13434 13435 13436 <span class="os-list"> 13437 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13438 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13439 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13440 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13441 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13442 </span> 13443 </p> 13444 13445 <p class="item-info">The vertical size class of this environment.</p> 13446 13447</li> 13448 13449 <li class="with-iOS with-iPadOS with-macOS with-watchOS with-tvOS"> 13450 <p> 13451 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/webauthenticationsession">\.webAuthenticationSession</a> 13452 13453 <span class="tag">AuthenticationServices</span> 13454 13455 13456 <span class="os-list"> 13457 <span class="tag iOS" data-version="16.4">iOS 16.4</span> 13458 <span class="tag macOS" data-version="13.3">macOS 13.3</span> 13459 <span class="tag watchOS" data-version="9.4">watchOS 9.4</span> 13460 <span class="tag tvOS" data-version="16.4">tvOS 16.4</span> 13461 </span> 13462 </p> 13463 13464 <p class="item-info">A value provided in the SwiftUI environment that views can use to authenticate a user through a web service.</p> 13465 13466</li> 13467 13468 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 13469 <p> 13470 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/widgetcontentmargins">\.widgetContentMargins</a> 13471
13472 <span class="tag">WidgetKit</span> 13473 13474 13475 <span class="os-list"> 13476 <span class="tag iOS" data-version="17.0">iOS 17.0</span> 13477 <span class="tag macOS" data-version="14.0">macOS 14.0</span> 13478 <span class="tag watchOS" data-version="10.0">watchOS 10.0</span> 13479 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13480 </span> 13481 </p> 13482 13483 <p class="item-info">A property that identifies the content margins of a widget.</p> 13484 13485</li> 13486 13487 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 13488 <p> 13489 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/widgetfamily">\.widgetFamily</a> 13490 13491 <span class="tag">WidgetKit</span> 13492 13493 13494 <span class="os-list"> 13495 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13496 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13497 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 13498 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13499 </span> 13500 </p> 13501 13502 <p class="item-info">The template of the widget â small, medium, or large.</p> 13503 13504</li> 13505 13506 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-xrOS"> 13507 <p> 13508 <a href="https://developer.apple.com/documentation/swiftui/environmentvalues/widgetrenderingmode">\.widgetRenderingMode</a> 13509 13510 <span class="tag">WidgetKit</span> 13511 13512 13513 <span class="os-list"> 13514 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13515 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 13516 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 13517 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13518 </span> 13519 </p> 13520 13521 <p class="item-info">The widgetâs rendering mode, based on where the system is displaying it.</p> 13522 13523</li> 13524 13525 </ul> 13526 </div> 13527 </div> 13528 <div class="section all-platforms"> 13529 <h3>Property Wrappers</h3> 13530 13531 13532 13533 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 13534 <h4>Accessible Controls</h4> 13535 13536 <ul> 13537 <li class="empty"></li> 13538 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13539 <p> 13540 <a href="https://developer.apple.com/documentation/swiftui/accessibilityfocusstate">@AccessibilityFocusState</a> 13541 13542 13543 13544 <span class="os-list"> 13545 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 13546 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 13547 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 13548 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 13549 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13550 </span> 13551 </p> 13552 13553 <p class="item-info">A property wrapper type that can read and write a value that SwiftUI updates as the focus of any active accessibility technology, such as VoiceOver, changes.</p> 13554 13555</li> 13556 13557 </ul> 13558 </div> 13559 13560 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 13561 <h4>Animations</h4> 13562 13563 <ul> 13564 <li class="empty"></li> 13565 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13566 <p> 13567 <a href="https://developer.apple.com/documentation/swiftui/namespace">@Namespace</a> 13568 13569 13570 13571 <span class="os-list"> 13572 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13573 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13574 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13575 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13576 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13577 </span> 13578 </p> 13579 13580 <p class="item-info">A dynamic property type that allows access to a namespace defined by the persistent identity of the object containing the property (e.g. a view).</p> 13581 13582</li> 13583 13584 </ul> 13585 </div> 13586 13587 <div class="section with-macOS with-iOS with-tvOS with-xrOS with-watchOS"> 13588 <h4>App Organization</h4> 13589 13590 <ul> 13591 <li class="empty"></li> 13592 <li class="with-macOS"> 13593 <p> 13594 <a href="https://developer.apple.com/documentation/swiftui/nsapplicationdelegateadaptor">@NSApplicationDelegateAdaptor</a> 13595 13596 13597 13598 <span class="os-list">
13599 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13600 </span> 13601 </p> 13602 13603 <p class="item-info">A property wrapper type that you use to create an AppKit app delegate.</p> 13604 13605</li> 13606 13607 <li class="with-iOS with-iPadOS with-Catalyst with-tvOS with-xrOS"> 13608 <p> 13609 <a href="https://developer.apple.com/documentation/swiftui/uiapplicationdelegateadaptor">@UIApplicationDelegateAdaptor</a> 13610 13611 13612 13613 <span class="os-list"> 13614 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13615 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13616 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13617 </span> 13618 </p> 13619 13620 <p class="item-info">A property wrapper type that you use to create a UIKit app delegate.</p> 13621 13622</li> 13623 13624 <li class="with-watchOS"> 13625 <p> 13626 <a href="https://developer.apple.com/documentation/swiftui/wkapplicationdelegateadaptor">@WKApplicationDelegateAdaptor</a> 13627 13628 13629 13630 <span class="os-list"> 13631 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13632 </span> 13633 </p> 13634 13635 <p class="item-info">A property wrapper that is used in App to provide a delegate from WatchKit.</p> 13636 13637</li> 13638 13639 <li class="with-watchOS"> 13640 <p> 13641 <a href="https://developer.apple.com/documentation/swiftui/wkextensiondelegateadaptor">@WKExtensionDelegateAdaptor</a> 13642 13643 13644 13645 <span class="os-list"> 13646 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13647 </span> 13648 </p> 13649 13650 <p class="item-info">A property wrapper type that you use to create a WatchKit extension delegate.</p> 13651 13652</li> 13653 13654 </ul> 13655 </div> 13656 13657 <div class="section with-xrOS"> 13658 <h4>Drawing and Graphics</h4> 13659 13660 <ul> 13661 <li class="empty"></li> 13662 <li class="with-xrOS"> 13663 <p> 13664 <a href="https://developer.apple.com/documentation/swiftui/physicalmetric">@PhysicalMetric</a> 13665 13666 13667 13668 <span class="os-list"> 13669 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13670 </span> 13671 </p> 13672 13673 <p class="item-info">Provides access to a value in points that corresponds to the specified physical measurement.</p> 13674 13675</li> 13676 13677 </ul> 13678 </div> 13679 13680 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 13681 <h4>Environment Values</h4> 13682 13683 <ul> 13684 <li class="empty"></li> 13685 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13686 <p> 13687 <a href="https://developer.apple.com/documentation/swiftui/environment">@Environment</a> 13688 13689 13690 13691 <span class="os-list"> 13692 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13693 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13694 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13695 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13696 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13697 </span> 13698 </p> 13699 13700 <p class="item-info">A property wrapper that reads a value from a viewâs environment.</p> 13701 13702</li> 13703 13704 </ul> 13705 </div> 13706 13707 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 13708 <h4>Focus</h4> 13709 13710 <ul> 13711 <li class="empty"></li> 13712 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13713 <p> 13714 <a href="https://developer.apple.com/documentation/swiftui/focusedbinding">@FocusedBinding</a> 13715 13716 13717 13718 <span class="os-list"> 13719 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13720 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13721 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13722 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13723 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13724 </span> 13725 </p> 13726 13727 <p class="item-info">A convenience property wrapper for observing and automatically unwrapping state bindings from the focused view or one of its ancestors.</p> 13728 13729</li> 13730 13731 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13732 <p> 13733 <a href="https://developer.apple.com/documentation/swiftui/focusedobject">@FocusedObject</a> 13734 13735 13736 13737 <span class="os-list">
13738 <span class="tag iOS" data-version="16.0">iOS 16.0</span> 13739 <span class="tag macOS" data-version="13.0">macOS 13.0</span> 13740 <span class="tag watchOS" data-version="9.0">watchOS 9.0</span> 13741 <span class="tag tvOS" data-version="16.0">tvOS 16.0</span> 13742 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13743 </span> 13744 </p> 13745 13746 <p class="item-info">A property wrapper type for an observable object supplied by the focused view or one of its ancestors.</p> 13747 13748</li> 13749 13750 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13751 <p> 13752 <a href="https://developer.apple.com/documentation/swiftui/focusedvalue">@FocusedValue</a> 13753 13754 13755 13756 <span class="os-list"> 13757 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13758 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13759 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13760 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13761 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13762 </span> 13763 </p> 13764 13765 <p class="item-info">A property wrapper for observing values from the focused view or one of its ancestors.</p> 13766 13767</li> 13768 13769 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13770 <p> 13771 <a href="https://developer.apple.com/documentation/swiftui/focusstate">@FocusState</a> 13772 13773 13774 13775 <span class="os-list"> 13776 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 13777 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 13778 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 13779 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 13780 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13781 </span> 13782 </p> 13783 13784 <p class="item-info">A property wrapper type that can read and write a value that SwiftUI updates as the placement of focus within the scene changes.</p> 13785 13786</li> 13787 13788 </ul> 13789 </div> 13790 13791 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 13792 <h4>Gestures</h4> 13793 13794 <ul> 13795 <li class="empty"></li> 13796 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13797 <p> 13798 <a href="https://developer.apple.com/documentation/swiftui/gesturestate">@GestureState</a> 13799 13800 13801 13802 <span class="os-list"> 13803 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13804 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13805 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13806 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13807 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13808 </span> 13809 </p> 13810 13811 <p class="item-info">A property wrapper type that updates a property while the user performs a gesture and resets the property back to its initial state when the gesture ends.</p> 13812 13813</li> 13814 13815 </ul> 13816 </div> 13817 13818 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 13819 <h4>Model Data</h4> 13820 13821 <ul> 13822 <li class="empty"></li> 13823 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13824 <p> 13825 <a href="https://developer.apple.com/documentation/swiftui/binding">@Binding</a> 13826 13827 13828 13829 <span class="os-list"> 13830 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13831 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13832 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13833 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13834 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13835 </span> 13836 </p> 13837 13838 <p class="item-info">A property wrapper type that can read and write a value owned by a source of truth.</p> 13839 13840</li> 13841 13842 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13843 <p> 13844 <a href="https://developer.apple.com/documentation/swiftui/environmentobject">@EnvironmentObject</a> 13845 13846 13847 13848 <span class="os-list">
13849 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13850 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13851 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13852 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13853 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13854 </span> 13855 </p> 13856 13857 <p class="item-info">A property wrapper type for an observable object supplied by a parent or ancestor view.</p> 13858 13859</li> 13860 13861 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13862 <p> 13863 <a href="https://developer.apple.com/documentation/swiftui/observedobject">@ObservedObject</a> 13864 13865 13866 13867 <span class="os-list"> 13868 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13869 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13870 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13871 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13872 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13873 </span> 13874 </p> 13875 13876 <p class="item-info">A property wrapper type that subscribes to an observable object and invalidates a view whenever the observable object changes.</p> 13877 13878</li> 13879 13880 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13881 <p> 13882 <a href="https://developer.apple.com/documentation/swiftui/state">@State</a> 13883 13884 13885 13886 <span class="os-list"> 13887 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13888 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13889 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span> 13890 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13891 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13892 </span> 13893 </p> 13894 13895 <p class="item-info">A property wrapper type that can read and write a value managed by SwiftUI.</p> 13896 13897</li> 13898 13899 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13900 <p> 13901 <a href="https://developer.apple.com/documentation/swiftui/stateobject">@StateObject</a> 13902 13903 13904 13905 <span class="os-list"> 13906 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13907 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13908 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13909 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13910 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13911 </span> 13912 </p> 13913 13914 <p class="item-info">A property wrapper type that instantiates an observable object.</p> 13915 13916</li> 13917 13918 </ul> 13919 </div> 13920 13921 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 13922 <h4>Persistent Storage</h4> 13923 13924 <ul> 13925 <li class="empty"></li> 13926 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13927 <p> 13928 <a href="https://developer.apple.com/documentation/swiftui/appstorage">@AppStorage</a> 13929 13930 13931 13932 <span class="os-list"> 13933 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13934 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13935 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13936 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13937 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13938 </span> 13939 </p> 13940 13941 <p class="item-info">A property wrapper type that reflects a value from UserDefaults and invalidates a view on a change in value in that user default.</p> 13942 13943</li> 13944 13945 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13946 <p> 13947 <a href="https://developer.apple.com/documentation/swiftui/fetchrequest">@FetchRequest</a> 13948 13949 13950 13951 <span class="os-list"> 13952 <span class="tag iOS" data-version="13.0">iOS 13.0</span> 13953 <span class="tag macOS" data-version="10.15">macOS 10.15</span> 13954 <span class="tag watchOS" data-version="6.0">watchOS 6.0</span>
13955 <span class="tag tvOS" data-version="13.0">tvOS 13.0</span> 13956 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13957 </span> 13958 </p> 13959 13960 <p class="item-info">A property wrapper type that retrieves entities from a Core Data persistent store.</p> 13961 13962</li> 13963 13964 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13965 <p> 13966 <a href="https://developer.apple.com/documentation/swiftui/scenestorage">@SceneStorage</a> 13967 13968 13969 13970 <span class="os-list"> 13971 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 13972 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 13973 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 13974 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 13975 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13976 </span> 13977 </p> 13978 13979 <p class="item-info">A property wrapper type that reads and writes to persisted, per-scene storage.</p> 13980 13981</li> 13982 13983 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 13984 <p> 13985 <a href="https://developer.apple.com/documentation/swiftui/sectionedfetchrequest">@SectionedFetchRequest</a> 13986 13987 13988 13989 <span class="os-list"> 13990 <span class="tag iOS" data-version="15.0">iOS 15.0</span> 13991 <span class="tag macOS" data-version="12.0">macOS 12.0</span> 13992 <span class="tag watchOS" data-version="8.0">watchOS 8.0</span> 13993 <span class="tag tvOS" data-version="15.0">tvOS 15.0</span> 13994 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 13995 </span> 13996 </p> 13997 13998 <p class="item-info">A property wrapper type that retrieves entities, grouped into sections, from a Core Data persistent store.</p> 13999 14000</li> 14001 14002 </ul> 14003 </div> 14004 14005 <div class="section with-iOS with-macOS with-watchOS with-tvOS with-xrOS"> 14006 <h4>Text Input and Output</h4> 14007 14008 <ul> 14009 <li class="empty"></li> 14010 <li class="with-iOS with-iPadOS with-macOS with-Catalyst with-watchOS with-tvOS with-xrOS"> 14011 <p> 14012 <a href="https://developer.apple.com/documentation/swiftui/scaledmetric">@ScaledMetric</a> 14013 14014 14015 14016 <span class="os-list"> 14017 <span class="tag iOS" data-version="14.0">iOS 14.0</span> 14018 <span class="tag macOS" data-version="11.0">macOS 11.0</span> 14019 <span class="tag watchOS" data-version="7.0">watchOS 7.0</span> 14020 <span class="tag tvOS" data-version="14.0">tvOS 14.0</span> 14021 <span class="tag xrOS" data-version="1.0">xrOS 1.0</span> 14022 </span> 14023 </p> 14024 14025 <p class="item-info">A dynamic property that scales a numeric value.</p> 14026 14027</li> 14028 14029 </ul> 14030 </div> 14031 </div> 14032 </div> 14033</article> 14034 14035 </div> 14036 14037 <footer> 14038 <p> 14039 <a href="/sitemap">Sitemap</a> ⢠14040 <a href="/feeds">Feeds</a> 14041 </p> 14042 <p>Copyright © 2008â2026 Kuba Suder</p> 14043 </footer> 14044 </div> 14045 14046
14046<script type="text/javascript" nonce="wfHrF7zl7+FivaRCPt5c6Q=="> 14047 document.addEventListener('DOMContentLoaded', () => { 14048 Blog.init(); 14049 window.Comments?.init(); 14050 }); 14051 </script>
14051 14052 14053
14053<script src="https://mackuba.eu/m/script.js"></script>
14053 14054</body> 14055</html>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.